Created
June 1, 2014 23:25
-
-
Save Thermionix/0b6382b5a121942000e4 to your computer and use it in GitHub Desktop.
apply an svn revision onto a git repo (including binary files)
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
$rev=40469 ; $url="svn://svn/test/branches/1.0.3" ; $clonedir="C:\source\test" ; $gitbin="${env:ProgramFiles(x86)}\Git\bin" ; cmd /c "svn diff --force --patch-compatible --diff-cmd `"$gitbin\diff.exe`" -x `"--text --unified`" -c $rev $url | git apply --directory=`"$clonedir`" -p0 --reject --verbose -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment