File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ protected void CreateBranch(string branchName)
131
131
{
132
132
if ( ! Directory . Exists ( WorkingDir ) )
133
133
{
134
+ var options = new CloneOptions ( ) ;
135
+ options . FetchOptions . CredentialsProvider = ( url , user , cred ) => Credentials ;
136
+
134
137
// 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 ) ;
139
139
}
140
140
141
141
// TODO: Use Web API to create a new branch if implemented in GitBucket
You can’t perform that action at this time.
0 commit comments