git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git fast-export' is crashing on the gcc repo
@ 2007-12-11 20:27 Nicolas Pitre
  2007-12-11 20:35 ` Marco Costalba
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Nicolas Pitre @ 2007-12-11 20:27 UTC (permalink / raw)
  To: git

Simply doing something like:

$ git fast-export --all > /dev/null

results in:

fatal: Could not write blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391

Since this is extremely enlightening, I patched it as follows:

diff --git a/builtin-fast-export.c b/builtin-fast-export.c
index 2136aad..5c7bfe0 100755
--- a/builtin-fast-export.c
+++ b/builtin-fast-export.c
@@ -104,7 +104,8 @@ static void handle_object(const unsigned char *sha1)
 
 	printf("blob\nmark :%d\ndata %lu\n", last_idnum, size);
 	if (fwrite(buf, size, 1, stdout) != 1)
-		die ("Could not write blob %s", sha1_to_hex(sha1));
+		die ("Could not write blob %s: %s",
+		     sha1_to_hex(sha1), strerror(errno));
 	printf("\n");
 
 	show_progress();

And then running it again produced:

fatal: Could not write blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391: Inappropriate ioctl for device

adding to today's confusion.


Nicolas

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-12-12  8:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 20:27 'git fast-export' is crashing on the gcc repo Nicolas Pitre
2007-12-11 20:35 ` Marco Costalba
2007-12-11 22:01 ` [PATCH] Fix git-fast-export for zero-sized blobs Alex Riesen
2007-12-11 22:20   ` Nicolas Pitre
2007-12-11 22:06 ` 'git fast-export' is crashing on the gcc repo Nicolas Pitre
2007-12-12  1:38   ` Alex Riesen
2007-12-12  1:45     ` Nicolas Pitre
2007-12-12  8:32       ` Junio C Hamano
2007-12-12  8:46         ` David Kastrup
2007-12-12  8:56           ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).