Browse code

fixes anthony's comment about not working if you aren't switching branches

Jesse Andrews authored on 2011/10/17 11:08:04
Showing 1 changed files
... ...
@@ -301,8 +301,9 @@ function git_clone {
301 301
         cd $2
302 302
         git remote set-url origin $1
303 303
         git fetch origin
304
+        git checkout origin/$3
304 305
         git branch -D $3
305
-        git checkout $3
306
+        git checkout -b $3
306 307
     fi
307 308
 }
308 309