summaryrefslogtreecommitdiff
path: root/local-pull.c
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2005-05-11 00:00:49 (GMT)
committerPetr Baudis <xpasky@machine.sinus.cz>2005-05-11 00:00:49 (GMT)
commitf1a7eb36b017c62d9a007b6b8660bdeec3f94f97 (patch)
tree9d9c288e2db202401ffba37a1b921f4244a79b2b /local-pull.c
parent883550481f885ab2865ab71819167230d21d4c14 (diff)
parentb790abb874890926e4cfda552bfa89d1d4ff972b (diff)
downloadgit-f1a7eb36b017c62d9a007b6b8660bdeec3f94f97.zip
git-f1a7eb36b017c62d9a007b6b8660bdeec3f94f97.tar.gz
git-f1a7eb36b017c62d9a007b6b8660bdeec3f94f97.tar.bz2
Merge with http://members.cox.net/junkio/git-jc.git
Diffstat (limited to 'local-pull.c')
-rw-r--r--local-pull.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/local-pull.c b/local-pull.c
index 1eec892..3a342ab 100644
--- a/local-pull.c
+++ b/local-pull.c
@@ -5,6 +5,7 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include <limits.h>
#include "cache.h"
#include "commit.h"
#include <errno.h>
@@ -70,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;