Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
checkout: tone down the "forked status" diagnostic messages
[gitweb.git]
/
builtin-fast-export.c
diff --git
a/builtin-fast-export.c
b/builtin-fast-export.c
index 2136aadfd7831828ee29fbfa9ae7974c65271dee..ef27eee71bdef2cac6f751e07b1da71588989b03 100755
(executable)
--- a/
builtin-fast-export.c
+++ b/
builtin-fast-export.c
@@
-103,7
+103,7
@@
static void handle_object(const unsigned char *sha1)
mark_object(object);
printf("blob\nmark :%d\ndata %lu\n", last_idnum, size);
- if (fwrite(buf, size, 1, stdout) != 1)
+ if (
size &&
fwrite(buf, size, 1, stdout) != 1)
die ("Could not write blob %s", sha1_to_hex(sha1));
printf("\n");