From 1dfedf168d4398aa831546034a407b73f7d3e2b3 Mon Sep 17 00:00:00 2001 From: Sheetal Shinde Date: Tue, 10 Nov 2009 13:48:59 +0000 Subject: [PATCH] [scripts] git_checkout: use $checkout instead of $branch --- scripts/git_checkout.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/git_checkout.sh b/scripts/git_checkout.sh index 025dd03..58e5e72 100755 --- a/scripts/git_checkout.sh +++ b/scripts/git_checkout.sh @@ -41,9 +41,9 @@ git_checkout() checkout=`git_get_branch_name "$componant"` set +e echo "Try to switch to the branch $checkout." - remote_branch=`(cd "$path" && git branch -a) | grep -E "$branch$"` - [ "$?" -ne 0 ] && remote_branch="$branch" - ( cd "$path" && git checkout -b "$branch" $remote_branch ) + remote_branch=`(cd "$path" && git branch -a) | grep -E "$checkout$"` + [ "$?" -ne 0 ] && remote_branch="$checkout" + ( cd "$path" && git checkout -b "$checkout" $remote_branch ) set -e } -- 2.39.5