Browse Source

Don't start merging if there are uncommitted changes

Change-Id: Ic1211e914162be6910caae10fcfc7deebc5b4ad3
tags/7.1.0
Leif Åstrand 11 years ago
parent
commit
d09b586ece
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      scripts/automerge7.sh

+ 8
- 0
scripts/automerge7.sh View File

@@ -67,6 +67,14 @@ maybe_commit_and_push() {
pushMerged
}

nothingToCommit=`git status | grep "nothing to commit"`
if [ "$nothingToCommit" == "" ]
then
git status
echo "Can not merge when there are unstaged changes."
exit 1;
fi

git checkout $TO
git fetch


Loading…
Cancel
Save