From 64c2ba225a936af765be4229243666c26ccd42b9 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Sun, 16 Oct 2011 19:08:04 -0700 Subject: [PATCH] fixes anthony's comment about not working if you aren't switching branches --- stack.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 65b991fcf5..e96ffbcf50 100755 --- a/stack.sh +++ b/stack.sh @@ -301,8 +301,9 @@ function git_clone { cd $2 git remote set-url origin $1 git fetch origin + git checkout origin/$3 git branch -D $3 - git checkout $3 + git checkout -b $3 fi }