Skip to content

Commit 17aaedd

Browse files
committed
Cleanup the repository now that we've done the commit
1 parent b5bf9e0 commit 17aaedd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ObjectiveGit/GTRepository+Merging.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ - (BOOL)mergeBranchIntoCurrentBranch:(GTBranch *)branch withError:(NSError **)er
238238
return NO;
239239
}
240240

241+
success = [self cleanupStateWithError:error];
242+
if (!success) {
243+
return NO;
244+
}
245+
241246
success = [self checkoutReference:localBranch.reference options:[GTCheckoutOptions checkoutOptionsWithStrategy:GTCheckoutStrategyForce] error:error];
242247
return success;
243248
}

0 commit comments

Comments
 (0)