diff options
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -219,7 +219,12 @@ do_git_build() exit 1 fi cd otp_src_git - git checkout $2 > /dev/null 2>&1 + git branch -a | grep "$2" > /dev/null 2>&1 + if [ "$?" -eq 1 ]; then + git checkout $2 > /dev/null 2>&1 + else + git checkout -b $2 origin/$2 > /dev/null 2>&1 + fi if [ "$?" -eq 1 ]; then echo "Couldn't checkout specified version" rm -Rf "$KERL_BUILD_DIR/$3" |