diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2023-03-28 13:58:46 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-03-28 14:36:36 (GMT) |
commit | d850b7a545fcfbd97460a921c7f7c59d933eb0f7 (patch) | |
tree | e36940d63b92557a8d930301ff96e70e55cc222d /builtin/unpack-file.c | |
parent | 7258e892d2c0f7a615562656e9978f39f610c056 (diff) | |
download | git-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.zip git-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.tar.gz git-d850b7a545fcfbd97460a921c7f7c59d933eb0f7.tar.bz2 |
cocci: apply the "cache.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to
"cache.h".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/unpack-file.c')
-rw-r--r-- | builtin/unpack-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/unpack-file.c b/builtin/unpack-file.c index 88de32b..e0d5178 100644 --- a/builtin/unpack-file.c +++ b/builtin/unpack-file.c @@ -29,7 +29,7 @@ int cmd_unpack_file(int argc, const char **argv, const char *prefix) if (argc != 2 || !strcmp(argv[1], "-h")) usage("git unpack-file <blob>"); - if (get_oid(argv[1], &oid)) + if (repo_get_oid(the_repository, argv[1], &oid)) die("Not a valid object name %s", argv[1]); git_config(git_default_config, NULL); |