Skip to content

Commit

Permalink
Remove git-config key when starting from develop. Refs #6725
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Mar 18, 2013
1 parent 1620e4b commit 086be61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Tools/Workflow/git/git-checkbuild
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ start_on_feature() {
if [ $? -gt 0 ]; then
# Record what was attempted to be merged
git config ${MERGENAME_CFG_KEY} ${mergebranch}
echo
echo "When you have resolved the conflicts with 'git add' then 'git commit' rerun this command from ${BUILD_BRANCH}."
exit 1
else
Expand Down Expand Up @@ -143,6 +144,9 @@ start_on_develop() {
if [ $? -gt 0 ]; then
echo "Warning: An error occurred when switching back to ${mergebranch}. Still on ${BUILD_BRANCH}!"
fi

# Remove any stored name
git config --unset ${MERGE_CFG_KEY} 2> /dev/null
}

main() {
Expand Down

0 comments on commit 086be61

Please sign in to comment.