Created
March 19, 2015 05:33
-
-
Save Superbil/7965871da40d5e206b3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
if [ -z $1 ]; then | |
echo "Usage $0 <repo_path>" | |
exit 1 | |
fi | |
clean_repo=$(echo $1 | sed "s/^\(.*\)trunk\/*/\1/") | |
repo_name=$(echo $1 | sed "s/^http\:\/\/\(.*\).google.*/\1/") | |
git svn clone --stdlayout --no-metadata $1 $repo_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment