Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fix typo in git-am manpage
[gitweb.git]
/
send-pack.c
diff --git
a/send-pack.c
b/send-pack.c
index cd478dd82fdc08094873112b40cbf302623ecc21..33e69dbe1803a8667f383c1f0517867c873dafc4 100644
(file)
--- a/
send-pack.c
+++ b/
send-pack.c
@@
-25,6
+25,8
@@
static int pack_objects(int fd, struct ref *refs)
if (pipe(pipe_fd) < 0)
return error("send-pack: pipe failed");
pid = fork();
+ if (pid < 0)
+ return error("send-pack: unable to fork git-pack-objects");
if (!pid) {
/*
* The child becomes pack-objects --revs; we feed