]> xenbits.xen.org Git - xenclient/build.git/commitdiff
[scripts] git_checkout.sh, checkout origin/$REMOTE.
authorJean Guyader <jean.guyader@eu.citrix.com>
Wed, 4 Nov 2009 14:17:21 +0000 (14:17 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Wed, 4 Nov 2009 14:17:21 +0000 (14:17 +0000)
scripts/git_checkout.sh

index c87cf7a659f95d9712b21d6f6af5d2fe61c687c6..01377f80166af891c34f89030ac994fcb27d30af 100755 (executable)
@@ -41,7 +41,7 @@ git_checkout()
 
         echo "Try to switch to the branch $checkout."
         set +e
-        ( cd "$path" && git checkout -b "$checkout" "$checkout" 2>/dev/null)
+        ( cd "$path" && git checkout -b "$checkout" "origin/$checkout" 2>/dev/null)
         set -e
 }