summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-11-02 16:53:22 +0900
committerJunio C Hamano <gitster@pobox.com>2023-11-02 16:53:22 +0900
commit7c7f6d828b5001feb138dd91bec12bffcf57e508 (patch)
tree214bc5a2506395256468224d5d9879002e2c2f0f
parent9d4a69f852bc00adc45585f0b54f11e30bf50782 (diff)
parentc2cbefc51023a9d919846afb5629910d014d231c (diff)
downloadgit-7c7f6d828b5001feb138dd91bec12bffcf57e508.tar.gz
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
-rw-r--r--builtin/mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mv.c b/builtin/mv.c
index 05e7156034..c596515ad0 100644
--- a/builtin/mv.c
+++ b/builtin/mv.c
@@ -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;
}