Skip to content

Instantly share code, notes, and snippets.

@Superbil
Created March 19, 2015 05:33
Show Gist options
  • Save Superbil/7965871da40d5e206b3d to your computer and use it in GitHub Desktop.
Save Superbil/7965871da40d5e206b3d to your computer and use it in GitHub Desktop.
#!/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