Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
clone: drop period from end of die_errno message
author
Jeff King
<peff@peff.net>
Wed, 18 Mar 2015 19:02:01 +0000
(15:02 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 19 Mar 2015 20:38:36 +0000
(13:38 -0700)
We do not usually end our errors with a full stop, but it
looks especially bad when you use die_errno, which adds a
colon, like:
fatal: could not create work tree dir 'foo'.: No such file or directory
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ee0e387
)
diff --git
a/builtin/clone.c
b/builtin/clone.c
index ee24162ca47f39d4671734cb5b3be9d5cc5d474e..3c5ba0ab25b661f4069d3ac9a6b7c2549eac01ec 100644
(file)
--- a/
builtin/clone.c
+++ b/
builtin/clone.c
@@
-849,7
+849,7
@@
int cmd_clone(int argc, const char **argv, const char *prefix)
die_errno(_("could not create leading directories of '%s'"),
work_tree);
if (!dest_exists && mkdir(work_tree, 0777))
- die_errno(_("could not create work tree dir '%s'
.
"),
+ die_errno(_("could not create work tree dir '%s'"),
work_tree);
junk_work_tree = work_tree;
set_git_work_tree(work_tree);