8000 Handle breaking change in libgit2sharp · SIkebe/gitbucket-utility@10ceab9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10ceab9

Browse files
committed
Handle breaking change in libgit2sharp
libgit2/libgit2sharp#2065
1 parent ca412d2 commit 10ceab9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GbUtil.E2ETests/E2ETestBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ protected void CreateBranch(string branchName)
131131
{
132132
if (!Directory.Exists(WorkingDir))
133133
{
134+
var options = new CloneOptions();
135+
options.FetchOptions.CredentialsProvider = (url, user, cred) => Credentials;
136+
134137
// git clone http://localhost:8080/git/root/<repository-name>.git
135-
LibGit2Sharp.Repository.Clone($"{GitBucketDefaults.BaseUri}git/{Repository.FullName}.git", WorkingDir, new CloneOptions
136-
{
137-
CredentialsProvider = (url, user, cred) => Credentials
138-
});
138+
LibGit2Sharp.Repository.Clone($"{GitBucketDefaults.BaseUri}git/{Repository.FullName}.git", WorkingDir, options);
139139
}
140140

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

0 commit comments

Comments
 (0)
0