summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorFranck Bui-Huu <vagabon.xyz@gmail.com>2006-09-13 10:26:47 +0200
committerJunio C Hamano <junkio@cox.net>2006-09-13 12:20:15 -0700
commit8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f (patch)
tree8089cb14dedd8cd61b945ebc6b292930406f752d /fetch-pack.c
parentcdad8bbe92a447233133be8f9f3015c1bd7e10eb (diff)
downloadgit-8a5dbef8ac24bc5a28409d646cf3ff6db0cccb3f.tar.gz
Test return value of finish_connect()
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-pack.c')
-rw-r--r--fetch-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index 377feded1c..1b4d8272dc 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -519,7 +519,7 @@ int main(int argc, char **argv)
ret = fetch_pack(fd, nr_heads, heads);
close(fd[0]);
close(fd[1]);
- finish_connect(pid);
+ ret |= finish_connect(pid);
if (!ret && nr_heads) {
/* If the heads to pull were given, we should have
@@ -534,5 +534,5 @@ int main(int argc, char **argv)
}
}
- return ret;
+ return !!ret;
}