Code

Update the gitweb/README file to include setting the GITWEB_CONFIG environment
[git.git] / fetch-pack.c
index 1b2d6ee20d16d03a59d2cd2aafb46e9a03c492b0..e8708aa802b8e09d8044bb99dbccb0fecdb14481 100644 (file)
@@ -525,7 +525,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
@@ -540,5 +540,5 @@ int main(int argc, char **argv)
                        }
        }
 
-       return ret;
+       return !!ret;
 }