diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:23:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:23:13 -0700 |
commit | 067fe6435534588bfd63857663532861d711d56e (patch) | |
tree | a60a6ba1b8fb6b65e380c17b721be6d6bdf03320 /merge-recursive.c | |
parent | Merge branch 'rs/reflog-exists' (diff) | |
parent | mv: allow renaming to fix case on case insensitive filesystems (diff) | |
download | tgif-067fe6435534588bfd63857663532861d711d56e.tar.xz |
Merge branch 'dt/merge-recursive-case-insensitive'
On a case insensitive filesystem, merge-recursive incorrectly
deleted the file that is to be renamed to a name that is the same
except for case differences.
* dt/merge-recursive-case-insensitive:
mv: allow renaming to fix case on case insensitive filesystems
merge-recursive.c: fix case-changing merge bug
Diffstat (limited to 'merge-recursive.c')
-rw-r--r-- | merge-recursive.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/merge-recursive.c b/merge-recursive.c index 4177092942..cab16fafb5 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -589,6 +589,12 @@ static int remove_file(struct merge_options *o, int clean, return -1; } if (update_working_directory) { + if (ignore_case) { + struct cache_entry *ce; + ce = cache_file_exists(path, strlen(path), ignore_case); + if (ce && ce_stage(ce) == 0) + return 0; + } if (remove_path(path)) return -1; } |