]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1-file.c
t5318: avoid unnecessary command substitutions
[thirdparty/git.git] / sha1-file.c
index 695e5c62764cf4befe09467f1a658b25c01baba1..c75ef771f8b5c9280466917f8b314d0fe9659884 100644 (file)
@@ -1801,7 +1801,7 @@ static void check_commit(const void *buf, size_t size)
 {
        struct commit c;
        memset(&c, 0, sizeof(c));
-       if (parse_commit_buffer(&c, buf, size))
+       if (parse_commit_buffer(the_repository, &c, buf, size, 0))
                die("corrupt commit");
 }
 
@@ -1809,7 +1809,7 @@ static void check_tag(const void *buf, size_t size)
 {
        struct tag t;
        memset(&t, 0, sizeof(t));
-       if (parse_tag_buffer(&t, buf, size))
+       if (parse_tag_buffer(the_repository, &t, buf, size))
                die("corrupt tag");
 }