Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
New re-cloner script
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybatch committed Oct 8, 2015
1 parent 4b764d2 commit f6441f7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions reclone
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

if [ -z "$1" ]; then
_PATH=`pwd`
else
_PATH=$1
fi

for GIT in `find $_PATH -type d -name .git`; do
URL=`git -C $GIT config --get remote.origin.url`
TARGET=`dirname $GIT`
mv $TARGET `dirname $TARGET`/_`basename $TARGET`
git clone $URL $TARGET
done

0 comments on commit f6441f7

Please sign in to comment.