Sparse-directory safety fix.
[gitweb.git] / fetch-pack.c
index 582f967a7af68670a6bb174745e43df35a2d0eef..953c0cf441c282bcfb50ce36299c4da3c90e290f 100644 (file)
@@ -81,7 +81,7 @@ static int fetch_pack(int fd[2], int nr_match, char **match)
        int status;
        pid_t pid;
 
-       get_remote_heads(fd[0], &ref, nr_match, match);
+       get_remote_heads(fd[0], &ref, nr_match, match, 1);
        if (!ref) {
                packet_flush(fd[1]);
                die("no matching remote head");