Last active
August 29, 2015 14:03
-
-
Save galak-fyyar/1b67a146783c56070456 to your computer and use it in GitHub Desktop.
git svn fetch new branch
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
#!/bin/sh | |
branch_url=$1 | |
rev=`svn log --stop-on-copy $branch_url | tail -4 | awk '{print $1}' | cut -c 2-500 | head -n 1` | |
git svn fetch -r $rev | |
git svn fetch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment