summaryrefslogtreecommitdiff
path: root/builtin-clone.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2009-04-29 23:24:52 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-29 18:37:42 -0700
commitf6a5f1bb509a3af182fe568135398f1f2be15e5d (patch)
tree3ab4d298bca7a9166cd7b4bb55d64c53e934dc65 /builtin-clone.c
parent691f1a28bf57618d8b44a193b1d28013c858aba6 (diff)
downloadgit-f6a5f1bb509a3af182fe568135398f1f2be15e5d.tar.gz
print unlink(2) errno in copy_or_link_directory
Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-clone.c')
-rw-r--r--builtin-clone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-clone.c b/builtin-clone.c
index 880373f279..ba286e0160 100644
--- 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;