зеркало из https://github.com/microsoft/git.git
Merge branch 'mm/mv-file-to-no-such-dir-with-slash'
Finishing touches to do the same on windows. * mm/mv-file-to-no-such-dir-with-slash: mv: let 'git mv file no-such-dir/' error out on Windows, too
This commit is contained in:
Коммит
272220ff67
|
@ -214,6 +214,8 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
|
|||
}
|
||||
} else if (string_list_has_string(&src_for_dst, dst))
|
||||
bad = _("multiple sources for the same target");
|
||||
else if (is_dir_sep(dst[strlen(dst) - 1]))
|
||||
bad = _("destination directory does not exist");
|
||||
else
|
||||
string_list_insert(&src_for_dst, dst);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче