Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
mv: make non-directory destination error more clear
[gitweb.git]
/
builtin
/
mv.c
diff --git
a/builtin/mv.c
b/builtin/mv.c
index 449f30aaca93c464af6e2bb947069e59a363932a..177e5437813b4ed65ed4b984d2d6ae4d0dbd43cd 100644
(file)
--- a/
builtin/mv.c
+++ b/
builtin/mv.c
@@
-90,7
+90,7
@@
int cmd_mv(int argc, const char **argv, const char *prefix)
destination = copy_pathspec(dest_path[0], argv, argc, 1);
} else {
if (argc != 1)
-
usage_with_options(builtin_mv_usage, builtin_mv_options
);
+
die("destination '%s' is not a directory", dest_path[0]
);
destination = dest_path;
}