Failure using "svn patch" with Git patch that adds files. Wrong path is used.
From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Sat, 5 Nov 2011 17:56:43 +0400
Hi!
My colleague uses Git to work on one of Apache projects. He published
Source code:
The patch is in Git format, with most changes being written with the
But it also contains an added file:
I am on WindowsXP, using svn, version 1.7.1 (r1186859) compiled Oct 21
I tried the following:
It processed the added file correctly,
b) svn patch --strip 1 2011-11-03-redeploy-trunk-v2.patch
It processes the modified files correctly,
The created folders and file are added to version control.
So a workaround is to apply a) followed by b) and then revert the odd
I think that the proper recipe to apply such patch is b) "svn patch --strip 1"
I do not understand why "svn patch --strip 1" strips two components
Note that it is "/dev/null" in the patch, with proper "/" slash at the
Best regards,
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.