]> asedeno.scripts.mit.edu Git - git.git/blobdiff - sha1_file.c
Display the null SHA-1 as the base for an OBJ_OFS_DELTA.
[git.git] / sha1_file.c
index 6d0a72ed093d353a672129f7e460d0c1015212d7..c13ef6675c45a804b8d68ebc92af65d9d1fcbf90 100644 (file)
@@ -1200,6 +1200,7 @@ const char *packed_object_info_detail(struct packed_git *p,
                        obj_offset = get_delta_base(p, &w_curs, &curpos, type, obj_offset);
                        if (*delta_chain_length == 0) {
                                /* TODO: find base_sha1 as pointed by curpos */
+                               hashclr(base_sha1);
                        }
                        break;
                case OBJ_REF_DELTA: