Skip to content

Commit 5747d1a

Browse files
committed
Comment out BitBucket test
1 parent 6490ff1 commit 5747d1a

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -208,29 +208,29 @@ static Credentials CreateUsernamePasswordCredentials(string user, string pass, b
208208
};
209209
}
210210

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+
//}
234234

235235
[SkippableTheory]
236236
[InlineData("https://github.com/libgit2/TestGitRepository.git", "github.com", typeof(CertificateX509))]

0 commit comments

Comments
 (0)