@@ -13,8 +13,6 @@ public class CloneFixture : BaseFixture
1313 [ Theory ]
1414 [ InlineData ( "http://github.com/libgit2/TestGitRepository" ) ]
1515 [ InlineData ( "https://github.com/libgit2/TestGitRepository" ) ]
16- [ InlineData ( "git://github.com/libgit2/TestGitRepository" ) ]
17- //[InlineData("git@github.com:libgit2/TestGitRepository")]
1816 public void CanClone ( string url )
1917 {
2018 var scd = BuildSelfCleaningDirectory ( ) ;
@@ -102,8 +100,6 @@ public void CanCloneALocalRepositoryFromANewlyCreatedTemporaryPath()
102100 [ Theory ]
103101 [ InlineData ( "http://github.com/libgit2/TestGitRepository" ) ]
104102 [ InlineData ( "https://github.com/libgit2/TestGitRepository" ) ]
105- [ InlineData ( "git://github.com/libgit2/TestGitRepository" ) ]
106- //[InlineData("git@github.com:libgit2/TestGitRepository")]
107103 public void CanCloneBarely ( string url )
108104 {
109105 var scd = BuildSelfCleaningDirectory ( ) ;
@@ -126,7 +122,7 @@ public void CanCloneBarely(string url)
126122 }
127123
128124 [ Theory ]
129- [ InlineData ( "git ://github.com/libgit2/TestGitRepository" ) ]
125+ [ InlineData ( "https ://github.com/libgit2/TestGitRepository" ) ]
130126 public void WontCheckoutIfAskedNotTo ( string url )
131127 {
132128 var scd = BuildSelfCleaningDirectory ( ) ;
@@ -143,7 +139,7 @@ public void WontCheckoutIfAskedNotTo(string url)
143139 }
144140
145141 [ Theory ]
146- [ InlineData ( "git ://github.com/libgit2/TestGitRepository" ) ]
142+ [ InlineData ( "https ://github.com/libgit2/TestGitRepository" ) ]
147143 public void CallsProgressCallbacks ( string url )
148144 {
149145 bool transferWasCalled = false ;
@@ -212,29 +208,29 @@ static Credentials CreateUsernamePasswordCredentials(string user, string pass, b
212208 } ;
213209 }
214210
215- [ Theory ]
216- [ InlineData ( "https://libgit2@bitbucket.org/libgit2/testgitrepository.git" , "libgit3" , "libgit3" , true ) ]
217- [ InlineData ( "https://libgit2@bitbucket.org/libgit2/testgitrepository.git" , "libgit3" , "libgit3" , false ) ]
218- public void CanCloneFromBBWithCredentials ( string url , string user , string pass , bool secure )
219- {
220- var scd = BuildSelfCleaningDirectory ( ) ;
221-
222- string clonedRepoPath = Repository . Clone ( url , scd . DirectoryPath , new CloneOptions ( )
223- {
224- CredentialsProvider = ( _url , _user , _cred ) => CreateUsernamePasswordCredentials ( user , pass , secure )
225- } ) ;
226-
227- using ( var repo = new Repository ( clonedRepoPath ) )
228- {
229- string dir = repo . Info . Path ;
230- Assert . True ( Path . IsPathRooted ( dir ) ) ;
231- Assert . True ( Directory . Exists ( dir ) ) ;
232-
233- Assert . NotNull ( repo . Info . WorkingDirectory ) ;
234- Assert . Equal ( Path . Combine ( scd . RootedDirectoryPath , ".git" + Path . DirectorySeparatorChar ) , repo . Info . Path ) ;
235- Assert . False ( repo . Info . IsBare ) ;
236- }
237- }
211+ // [Theory]
212+ // [InlineData("https://libgit2@bitbucket.org/libgit2/testgitrepository.git", "libgit3", "libgit3", true)]
213+ // [InlineData("https://libgit2@bitbucket.org/libgit2/testgitrepository.git", "libgit3", "libgit3", false)]
214+ // public void CanCloneFromBBWithCredentials(string url, string user, string pass, bool secure)
215+ // {
216+ // var scd = BuildSelfCleaningDirectory();
217+
218+ // string clonedRepoPath = Repository.Clone(url, scd.DirectoryPath, new CloneOptions()
219+ // {
220+ // CredentialsProvider = (_url, _user, _cred) => CreateUsernamePasswordCredentials(user, pass, secure)
221+ // });
222+
223+ // using (var repo = new Repository(clonedRepoPath))
224+ // {
225+ // string dir = repo.Info.Path;
226+ // Assert.True(Path.IsPathRooted(dir));
227+ // Assert.True(Directory.Exists(dir));
228+
229+ // Assert.NotNull(repo.Info.WorkingDirectory);
230+ // Assert.Equal(Path.Combine(scd.RootedDirectoryPath, ".git" + Path.DirectorySeparatorChar), repo.Info.Path);
231+ // Assert.False(repo.Info.IsBare);
232+ // }
233+ // }
238234
239235 [ SkippableTheory ]
240236 [ InlineData ( "https://github.com/libgit2/TestGitRepository.git" , "github.com" , typeof ( CertificateX509 ) ) ]
@@ -301,7 +297,7 @@ public void CanInspectCertificateOnClone(string url, string hostname, Type certT
301297 }
302298
303299 [ Theory ]
304- [ InlineData ( "git ://github.com/libgit2/TestGitRepository" ) ]
300+ [ InlineData ( "https ://github.com/libgit2/TestGitRepository" ) ]
305301 public void CloningWithoutWorkdirPathThrows ( string url )
306302 {
307303 Assert . Throws < ArgumentNullException > ( ( ) => Repository . Clone ( url , null ) ) ;
0 commit comments