Last active
July 11, 2018 20:58
-
-
Save unrelentingfox/8cded979c3f0f3429213dab771d465d9 to your computer and use it in GitHub Desktop.
Run a git svn fetch on all directories in the current directory that contain a .git file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GREEN='\033[0;36m' | |
NC='\033[0m' # No Color | |
printf "Running git svn fetch on all directories..\n" | |
for d in */ ; do | |
cd "$d" | |
if [ -e ".git" ]; then | |
printf "${GREEN}$d${NC}\n" | |
git svn fetch | |
wait | |
fi | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment