aboutsummaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetch-pack.c')
-rw-r--r--fetch-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index ec5bad89c..3475ea380 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -95,9 +95,9 @@ static int fetch_pack(int fd[2], int nr_match, char **match)
if (pid < 0)
die("git-fetch-pack: unable to fork off git-unpack-objects");
if (!pid) {
- close(fd[1]);
dup2(fd[0], 0);
close(fd[0]);
+ close(fd[1]);
execlp("git-unpack-objects", "git-unpack-objects", NULL);
die("git-unpack-objects exec failed");
}