]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/mv-d-to-d-error-message-fix' into maint-2.42
authorJunio C Hamano <gitster@pobox.com>
Thu, 2 Nov 2023 07:53:22 +0000 (16:53 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Nov 2023 07:53:22 +0000 (16:53 +0900)
Typofix in an error message.

* jc/mv-d-to-d-error-message-fix:
  mv: fix error for moving directory to another

1  2 
builtin/mv.c

diff --cc builtin/mv.c
index 05e7156034e04d637990cabf105f7fa967b0f2aa,80fc7a3c7029603a0fcaf9d15d8432ed799b4909..c596515ad0536f4b13ce2fdc2a797f6aaa9df70a
@@@ -304,8 -303,8 +304,8 @@@ int cmd_mv(int argc, const char **argv
                        goto act_on_entry;
                }
                if (S_ISDIR(st.st_mode)
 -                  && lstat(dst, &st) == 0) {
 +                  && lstat(dst, &dest_st) == 0) {
-                       bad = _("cannot move directory over file");
+                       bad = _("destination already exists");
                        goto act_on_entry;
                }