From: Rudolf Polzer Date: Sat, 5 Jun 2010 13:08:10 +0000 (+0200) Subject: fix a bug in the ./all script when checking out the DP repo X-Git-Tag: xonotic-v0.1.0preview~437 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=beeb2a3c5911a942a8da888673b7cf380b78f762 fix a bug in the ./all script when checking out the DP repo --- diff --git a/all b/all index b8e59d63..e49faeb8 100755 --- a/all +++ b/all @@ -233,7 +233,9 @@ case "$cmd" in else verbose git clone "$url" "$d0/$d" enter "$d0/$d" verbose - verbose git checkout "$branch" + if [ "$branch" != "master" ]; then + verbose git checkout --track -b "$branch" origin/"$branch" + fi cd "$d0" fi done