diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2010-01-17 03:05:10 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-18 10:32:05 -0800 |
commit | 158620872737067e4a74ca7aed5302af8debb714 (patch) | |
tree | f6d80d07207cff8387c93b9ce32f2de290757e68 /builtin-for-each-ref.c | |
parent | Git 1.6.6 (diff) | |
download | tgif-158620872737067e4a74ca7aed5302af8debb714.tar.xz |
builtin-apply.c: Skip filenames without enough components
find_name() wrongly returned the whole filename for filenames without
enough leading pathname components (e.g., when applying a patch to a
top-level file with -p2).
Include the -p value used in the error message when no filenames can be
found.
[jc: squashed a test from Nanako Shiraishi]
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-for-each-ref.c')
0 files changed, 0 insertions, 0 deletions