summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-18 19:16:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-18 19:16:31 (GMT)
commit9c74b9440108c88802f656f2fad2e8950a4a7650 (patch)
treec5acfee167d5112fd2eb5c77628064bfb9593ce3 /builtin
parentebb561bcfc7f04b3122150821dde7aca0356f00c (diff)
parent840b3ca758a42cb1481259521126ba2b02a5447a (diff)
downloadgit-9c74b9440108c88802f656f2fad2e8950a4a7650.zip
git-9c74b9440108c88802f656f2fad2e8950a4a7650.tar.gz
git-9c74b9440108c88802f656f2fad2e8950a4a7650.tar.bz2
Merge branch 'jn/rebase-rename-am'
* jn/rebase-rename-am: rebase: protect against diff.renames configuration t3400 (rebase): whitespace cleanup Teach "apply --index-info" to handle rename patches t4150 (am): futureproof against failing tests t4150 (am): style fix
Diffstat (limited to 'builtin')
-rw-r--r--builtin/apply.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/apply.c b/builtin/apply.c
index 12ef9ea..f38c1f7 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -2979,8 +2979,7 @@ static void build_fake_ancestor(struct patch *list, const char *filename)
else if (get_sha1(patch->old_sha1_prefix, sha1))
/* git diff has no index line for mode/type changes */
if (!patch->lines_added && !patch->lines_deleted) {
- if (get_current_sha1(patch->new_name, sha1) ||
- get_current_sha1(patch->old_name, sha1))
+ if (get_current_sha1(patch->old_name, sha1))
die("mode change for %s, which is not "
"in current HEAD", name);
sha1_ptr = sha1;