Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
daemon: Strictly parse the "extra arg" part of the command
[gitweb.git]
/
builtin-clone.c
diff --git
a/builtin-clone.c
b/builtin-clone.c
index 880373f279dd073ea7f0ae8564daca1cc687e529..ba286e0160c494244810334e3a0b43a59756e84a 100644
(file)
--- a/
builtin-clone.c
+++ b/
builtin-clone.c
@@
-228,7
+228,8
@@
static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest)
}
if (unlink(dest->buf) && errno != ENOENT)
- die("failed to unlink %s", dest->buf);
+ die("failed to unlink %s: %s",
+ dest->buf, strerror(errno));
if (!option_no_hardlinks) {
if (!link(src->buf, dest->buf))
continue;