aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-29 13:51:43 -0700
committerJunio C Hamano <gitster@pobox.com>2023-08-29 13:51:43 -0700
commita59dbae0b3bdacfc7ebad40f784f38d6333e8608 (patch)
treefe9a3d14958ddd0ef0a18e866bbe61bb3d67ab64
parent354356feffed7b3c72d62cd78fc7575efd5bad42 (diff)
parentc2cbefc51023a9d919846afb5629910d014d231c (diff)
downloadgit-a59dbae0b3bdacfc7ebad40f784f38d6333e8608.tar.xz
Merge branch 'jc/mv-d-to-d-error-message-fix'
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;
}