Browse code

if RECLONE is set, reclone the directories

Jesse Andrews authored on 2011/10/17 04:18:50
Showing 1 changed files
... ...
@@ -297,6 +297,12 @@ function git_clone {
297 297
         cd $2
298 298
         # This checkout syntax works for both branches and tags
299 299
         git checkout $3
300
+    elif [[ "$RECLONE" == "yes" ]]; then
301
+        cd $2
302
+        git remote set-url origin $1
303
+        git fetch origin
304
+        git branch -D $3
305
+        git checkout $3
300 306
     fi
301 307
 }
302 308