This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
CURRENT=`git branch | grep "\*" | cut -d' ' -f2` | |
git checkout master | |
git svn info >/dev/null 2>/dev/null | |
if [[ $? == 0 ]]; then | |
git svn rebase | |
else | |
git pull origin master | |
fi | |
git checkout ${CURRENT} |
NewerOlder