Skip to content

Commit

Permalink
Handle breaking change in libgit2sharp
Browse files Browse the repository at this point in the history
  • Loading branch information
SIkebe committed Aug 20, 2024
1 parent fbec928 commit 37e5100
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GbUtil.E2ETests/E2ETestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ protected void CreateBranch(string branchName)
{
if (!Directory.Exists(WorkingDir))
{
var options = new CloneOptions();
options.FetchOptions.CredentialsProvider = (url, user, cred) => Credentials;

// git clone http://localhost:8080/git/root/<repository-name>.git
LibGit2Sharp.Repository.Clone($"{GitBucketDefaults.BaseUri}git/{Repository.FullName}.git", WorkingDir, new CloneOptions
{
CredentialsProvider = (url, user, cred) => Credentials
});
LibGit2Sharp.Repository.Clone($"{GitBucketDefaults.BaseUri}git/{Repository.FullName}.git", WorkingDir, options);
}

// TODO: Use Web API to create a new branch if implemented in GitBucket
Expand Down

0 comments on commit 37e5100

Please sign in to comment.