diff options
author | Michal Marek <mmarek@suse.cz> | 2009-05-21 14:25:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-24 13:52:13 -0700 |
commit | 33eb4dd9fce3b46b6962b46213d6f222bcd0cb3a (patch) | |
tree | c09e8c7fc01526039d78d91865e4f0341f83aad0 /t/t4013/diff.format-patch_--stdout_--numbered_initial..master | |
parent | t/t3400-rebase.sh: add more tests to help migrating git-rebase.sh to C (diff) | |
download | tgif-33eb4dd9fce3b46b6962b46213d6f222bcd0cb3a.tar.xz |
apply: handle filenames with double slashes better
When there are duplicated slashes in pathnames, like this:
--- a/perl//Git.pm
+++ b/perl//Git.pm
@@ -1358,3 +1358,4 @@
1; # Famous last words
+# test
the paths gleaned from the patch header won't be found in the index and
cause "apply --index" and "apply --cached" to fail.
Fix this by squashing the duplicated slashes upon input.
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--stdout_--numbered_initial..master')
0 files changed, 0 insertions, 0 deletions