Generates conditional branch instead of fake ones for Select instruction in some...
[oota-llvm.git] / utils / git-svn / git-svnup
1 #!/bin/bash
2
3 if [ -n "`git status -uno -s --porcelain`" ]; then
4     echo "You have unstashed changes. Can not update repository..."
5     git status -uno
6     exit 1
7 fi
8
9 git fetch
10 OLD_BRANCH=$(git rev-parse --abbrev-ref HEAD)
11 git checkout master 2> /dev/null
12 git svn rebase -l
13 git checkout $OLD_BRANCH 2> /dev/null
14
15 exit 0