@@ -208,29 +208,29 @@ static Credentials CreateUsernamePasswordCredentials(string user, string pass, b
208
208
} ;
209
209
}
210
210
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
- }
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
+ // }
234
234
235
235
[ SkippableTheory ]
236
236
[ InlineData ( "https://github.com/libgit2/TestGitRepository.git" , "github.com" , typeof ( CertificateX509 ) ) ]
0 commit comments