[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / utils / git-svn / git-svnup
blob3321f6ba08aeb2c38322ad733b7ae1f2b13f026c
1 #!/bin/bash
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
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
15 exit 0