]> rtime.felk.cvut.cz Git - git.git/blobdiff - http.c
submodule: Fix documentation of update subcommand
[git.git] / http.c
diff --git a/http.c b/http.c
index 4ecf9e8f7b2ac87e96bc5faeaf9392d2b5248465..2cdf67d8307f3067673324647e681b0874565d55 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1250,7 +1250,7 @@ static int fetch_and_setup_pack_index(struct packed_git **packs_head,
        int ret;
 
        if (has_pack_index(sha1)) {
-               new_pack = parse_pack_index(sha1, NULL);
+               new_pack = parse_pack_index(sha1, sha1_pack_index_name(sha1));
                if (!new_pack)
                        return -1; /* parse_pack_index() already issued error message */
                goto add_pack;