diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2009-04-29 23:24:52 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-29 18:37:42 -0700 |
commit | f6a5f1bb509a3af182fe568135398f1f2be15e5d (patch) | |
tree | 3ab4d298bca7a9166cd7b4bb55d64c53e934dc65 | |
parent | 691f1a28bf57618d8b44a193b1d28013c858aba6 (diff) | |
download | git-f6a5f1bb509a3af182fe568135398f1f2be15e5d.tar.gz git-f6a5f1bb509a3af182fe568135398f1f2be15e5d.tar.xz |
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>
-rw-r--r-- | builtin-clone.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-clone.c b/builtin-clone.c index 880373f27..ba286e016 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; |