aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-09 23:48:21 -0700
committerJunio C Hamano <junkio@cox.net>2005-05-09 23:48:21 -0700
commitb4635be7c9e0855a29609d8171fc9ff27db573ee (patch)
tree3418989f882d682850d7a5cead4bc8f36af867e1
parent8ac069ac0ab34e751e5f96b0244a5fec10f3e54f (diff)
downloadgit-b4635be7c9e0855a29609d8171fc9ff27db573ee.tar.gz
git-b4635be7c9e0855a29609d8171fc9ff27db573ee.tar.xz
Do not report size of the object that cannot be written in local-pull.c
Reporting st.st_size with %ld is simply wrong, as H Peter Anvin says. No other pull drivers report the failure with size anyway, so yank it out. This is a cop-out patch but should be good enough. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--local-pull.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/local-pull.c b/local-pull.c
index acfcbb69f..3a342ab18 100644
--- a/local-pull.c
+++ b/local-pull.c
@@ -71,8 +71,7 @@ int fetch(unsigned char *sha1)
munmap(map, st.st_size);
close(ofd);
if (status)
- fprintf(stderr, "cannot write %s (%ld bytes)\n",
- dest_filename, st.st_size);
+ fprintf(stderr, "cannot write %s\n", dest_filename);
else
pull_say("copy %s\n", hex);
return status;