@@ -58,7 +58,7 @@ public ICommit FindMergeBase(ICommit commit, ICommit otherCommit)
58
58
{
59
59
var mergeBase = repositoryInstance . ObjectDatabase . FindMergeBase ( ( Commit ) commit , ( Commit ) otherCommit ) ;
60
60
return new Commit ( mergeBase ) ;
61
- } , 6 ) . ExecuteAsync ( ) . Result ;
61
+ } ) . ExecuteAsync ( ) . Result ;
62
62
}
63
63
64
64
public int GetNumberOfUncommittedChanges ( )
@@ -91,7 +91,7 @@ public int GetNumberOfUncommittedChanges()
91
91
DiffTargets . Index | DiffTargets . WorkingDirectory ) ;
92
92
93
93
return changes . Count ;
94
- } , 6 ) . ExecuteAsync ( ) . Result ;
94
+ } ) . ExecuteAsync ( ) . Result ;
95
95
}
96
96
public void CreateBranchForPullRequestBranch ( AuthenticationInfo auth )
97
97
{
@@ -151,7 +151,7 @@ public void CreateBranchForPullRequestBranch(AuthenticationInfo auth)
151
151
var message = $ "Remote tip '{ canonicalName } ' from remote '{ remote . Url } ' doesn't look like a valid pull request.";
152
152
throw new WarningException ( message ) ;
153
153
}
154
- } , 6 ) . ExecuteAsync ( ) . Wait ( ) ;
154
+ } ) . ExecuteAsync ( ) . Wait ( ) ;
155
155
}
156
156
public void Clone ( string sourceUrl , string workdirPath , AuthenticationInfo auth )
157
157
{
@@ -161,7 +161,7 @@ public void Clone(string sourceUrl, string workdirPath, AuthenticationInfo auth)
161
161
{
162
162
var path = Repository . Clone ( sourceUrl , workdirPath , GetCloneOptions ( auth ) ) ;
163
163
log . Info ( $ "Returned path after repository clone: { path } ") ;
164
- } , 6 ) . ExecuteAsync ( ) . Wait ( ) ;
164
+ } ) . ExecuteAsync ( ) . Wait ( ) ;
165
165
}
166
166
catch ( LibGit2SharpException ex )
167
167
{
@@ -184,12 +184,12 @@ public void Clone(string sourceUrl, string workdirPath, AuthenticationInfo auth)
184
184
}
185
185
public void Checkout ( string commitOrBranchSpec )
186
186
{
187
- new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) => Commands . Checkout ( repositoryInstance , commitOrBranchSpec ) , 6 ) . ExecuteAsync ( ) . Wait ( ) ;
187
+ new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) => Commands . Checkout ( repositoryInstance , commitOrBranchSpec ) ) . ExecuteAsync ( ) . Wait ( ) ;
188
188
}
189
189
190
190
public void Fetch ( string remote , IEnumerable < string > refSpecs , AuthenticationInfo auth , string logMessage )
191
191
{
192
- new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) => Commands . Fetch ( ( Repository ) repositoryInstance , remote , refSpecs , GetFetchOptions ( auth ) , logMessage ) , 6 ) . ExecuteAsync ( ) . Wait ( ) ;
192
+ new OperationWithExponentialBackoff < LockedFileException > ( new ThreadSleep ( ) , log , ( ) => Commands . Fetch ( ( Repository ) repositoryInstance , remote , refSpecs , GetFetchOptions ( auth ) , logMessage ) ) . ExecuteAsync ( ) . Wait ( ) ;
193
193
}
194
194
internal static string Discover ( string path ) => Repository . Discover ( path ) ;
195
195
0 commit comments