This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +0
-20
lines changed
test/GitHub.TeamFoundation.UnitTests Expand file tree Collapse file tree 4 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ class GitServiceDesigner : IGitService
1010 {
1111 public ILocalRepositoryModel CreateLocalRepositoryModel ( string localPath ) => null ;
1212 public IBranch CreateCurrentBranchModel ( ILocalRepositoryModel model ) => null ;
13- public void RefreshCloneUrl ( ILocalRepositoryModel localRepositoryModel ) { }
1413 public Task < string > GetLatestPushedSha ( string path , string remote = "origin" ) => Task . FromResult < string > ( null ) ;
1514 public UriString GetRemoteUri ( IRepository repo , string remote = "origin" ) => null ;
1615 public IRepository GetRepository ( string path ) => null ;
Original file line number Diff line number Diff line change @@ -68,18 +68,6 @@ public IBranch CreateCurrentBranchModel(ILocalRepositoryModel model)
6868 }
6969 }
7070
71- /// <summary>
72- /// Updates the CloneUrl from the "origin" remote.
73- /// </summary>
74- public void RefreshCloneUrl ( ILocalRepositoryModel localRepositoryModel )
75- {
76- var localPath = localRepositoryModel . LocalPath ;
77- if ( localPath == null )
78- return ;
79-
80- localRepositoryModel . CloneUrl = GetUri ( localPath ) ;
81- }
82-
8371 /// <summary>
8472 /// Returns the URL of the remote for the specified <see cref="repository"/>. If the repository
8573 /// is null or no remote named origin exists, this method returns null
Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ public interface IGitService
2121 /// <returns>A new branch model.</returns>
2222 IBranch CreateCurrentBranchModel ( ILocalRepositoryModel model ) ;
2323
24- /// <summary>
25- /// Updates the CloneUrl information based on the "origin" remote.
26- /// </summary>
27- /// <param name="localRepositoryModel">The repository model to refresh.</param>
28- void RefreshCloneUrl ( ILocalRepositoryModel localRepositoryModel ) ;
29-
3024 /// <summary>
3125 /// Returns the URL of the remote for the specified <see cref="repository"/>. If the repository
3226 /// is null or no remote exists, this method returns null
Original file line number Diff line number Diff line change @@ -317,6 +317,5 @@ public ILocalRepositoryModel CreateLocalRepositoryModel(string localPath)
317317 public IRepository GetRepository ( string path ) => throw new NotImplementedException ( ) ;
318318 public UriString GetUri ( IRepository repository , string remote = "origin" ) => throw new NotImplementedException ( ) ;
319319 public UriString GetUri ( string path , string remote = "origin" ) => throw new NotImplementedException ( ) ;
320- public void RefreshCloneUrl ( ILocalRepositoryModel localRepositoryModel ) => throw new NotImplementedException ( ) ;
321320 }
322321}
You can’t perform that action at this time.
0 commit comments