Skip to content

Commit

Permalink
Only allow y/n answers to "git test pass". Refs #6725
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Mar 18, 2013
1 parent 1dec034 commit e9cd89a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Code/Tools/Workflow/git/git-test
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ end_testing() {
fi

if [ $TEST_PASSED -eq 1 ]; then
echo "Testing passed on ${testbranch}. Push master to remote (y/n)?"
read publish
publish=""
while [ "$publish" != "y" -a "$publish" != "n" ];
do
echo -n "Testing passed on ${testbranch}. Push master to remote (y/n): "
read publish
done
if [ "${publish}" = "y" ]; then
# Publish
git_halt_on_error push origin ${PRODUCTION_BRANCH}
Expand Down

0 comments on commit e9cd89a

Please sign in to comment.