Skip to content

Commit

Permalink
Allow git-test to recover after merge. Refs #6725
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Mar 18, 2013
1 parent 086be61 commit 380207c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Code/Tools/Workflow/git/git-test
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,18 @@ start_testing() {
fi

# Update master
git_halt_on_error reset --hard origin/${PRODUCTION_BRANCH}
git_halt_on_error rebase --preserve-merges origin/${PRODUCTION_BRANCH}

# Merge test branch
git_ignore_errors merge --no-ff origin/${TEST_BRANCH}
if [ $? -gt 0 ]; then
echo "There were conflicts during the merge. If they are trivial please fix them, resolve the merge with 'git add' & 'git commit' and rerun this command."
echo "If you are unsure, fail the ticket and the talk to the develop so they can solve the issues."
git_halt_on_error reset --hard origin/${PRODUCTION_BRANCH}
echo
echo "WARNING: There were conflicts during the merge. If they are trivial please fix them, "
echo "resolve the merge with 'git add' & 'git commit' and rerun this command."
echo "If you are unsure fail the ticket, run 'git merge --abort' and talk to the develop about solving the issues."
exit 1
fi


# Save a file of the changes made on this branch for review and point the tester to
# a prettier version on github
# Direct tester to a pretty version of changes on branch on github
Expand Down

0 comments on commit 380207c

Please sign in to comment.