]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/receive-pack.c
shallow: convert shallow registration functions to object_id
[thirdparty/git.git] / builtin / receive-pack.c
index f96834f42c9849746b64c20c84869232cbac7367..6f0f788b0cb9fd0174ce9572843e43e69e27a131 100644 (file)
@@ -858,7 +858,7 @@ static int update_shallow_ref(struct command *cmd, struct shallow_info *si)
         * not lose these new roots..
         */
        for (i = 0; i < extra.nr; i++)
-               register_shallow(extra.oid[i].hash);
+               register_shallow(&extra.oid[i]);
 
        si->shallow_ref[cmd->index] = 0;
        oid_array_clear(&extra);