Skip to content

Commit ef486a9

Browse files
committed
Merge branch 'tb/git-mv-icase-fix'
Fix a corner case bug in "git mv" on case insensitive systems, which was introduced in 2.29 timeframe. * tb/git-mv-icase-fix: git mv foo FOO ; git mv foo bar gave an assert
2 parents bfcc6e2 + 93c3d29 commit ef486a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/mv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
221221
}
222222
argc += last - first;
223223
}
224-
} else if (!(ce = cache_file_exists(src, length, ignore_case))) {
224+
} else if (!(ce = cache_file_exists(src, length, 0))) {
225225
bad = _("not under version control");
226226
} else if (ce_stage(ce)) {
227227
bad = _("conflicted");

0 commit comments

Comments
 (0)