Skip to content

Commit

Permalink
Cleanup the repository now that we've done the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennou committed Mar 24, 2019
1 parent 7d4a1b1 commit 6435f82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ObjectiveGit/GTRepository+Merging.m
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ - (BOOL)mergeBranchIntoCurrentBranch:(GTBranch *)branch withError:(NSError **)er
return NO;
}

success = [self cleanupStateWithError:error];
if (!success) {
return NO;
}

success = [self checkoutReference:localBranch.reference options:[GTCheckoutOptions checkoutOptionsWithStrategy:GTCheckoutStrategyForce] error:error];
return success;
}
Expand Down

0 comments on commit 6435f82

Please sign in to comment.