Merge branch 'jc/mv-d-to-d-error-message-fix' into maint-2.42

Typofix in an error message.

* jc/mv-d-to-d-error-message-fix:
  mv: fix error for moving directory to another
This commit is contained in:
Junio C Hamano 2023-11-02 16:53:22 +09:00
commit 7c7f6d828b

View file

@ -305,7 +305,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
}
if (S_ISDIR(st.st_mode)
&& lstat(dst, &dest_st) == 0) {
bad = _("cannot move directory over file");
bad = _("destination already exists");
goto act_on_entry;
}