commit | b1304f2d353bc0de780f4d635fc9cbd48328bfcb | [log] [tgz] |
---|---|---|
author | Jesse Andrews <anotherjesse@gmail.com> | Sun Oct 16 12:18:50 2011 -0700 |
committer | Jesse Andrews <anotherjesse@gmail.com> | Sun Oct 16 12:18:50 2011 -0700 |
tree | 33cbac1aed5cd34f69e7b5c4d81e438415ffb0c5 | |
parent | da89268c9272e5e649d7d2332c86bf2fe68f57ee [diff] [blame] |
if RECLONE is set, reclone the directories
diff --git a/stack.sh b/stack.sh index a7eacbf..7334232 100755 --- a/stack.sh +++ b/stack.sh
@@ -297,6 +297,12 @@ cd $2 # This checkout syntax works for both branches and tags git checkout $3 + elif [[ "$RECLONE" == "yes" ]]; then + cd $2 + git remote set-url origin $1 + git fetch origin + git branch -D $3 + git checkout $3 fi }