diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2023-03-28 15:58:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-03-28 16:36:46 +0200 |
commit | 12cb1c10a64170a5d600dd1c6c8abfeec105fb6b (patch) | |
tree | 2209f7a97ef9e13aa6979efacd4f6dc93f23d5f7 /builtin/reset.c | |
parent | cocci: apply the "promisor-remote.h" part of "the_repository.pending" (diff) | |
download | git-12cb1c10a64170a5d600dd1c6c8abfeec105fb6b.tar.xz git-12cb1c10a64170a5d600dd1c6c8abfeec105fb6b.zip |
cocci: apply the "refs.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to
"refs.h".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
-rw-r--r-- | builtin/reset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c index 75b447ffdc..b65f379440 100644 --- a/builtin/reset.c +++ b/builtin/reset.c @@ -465,7 +465,8 @@ int cmd_reset(int argc, const char **argv, const char *prefix) char *ref = NULL; int err; - dwim_ref(rev, strlen(rev), &dummy, &ref, 0); + repo_dwim_ref(the_repository, rev, strlen(rev), + &dummy, &ref, 0); if (ref && !starts_with(ref, "refs/")) FREE_AND_NULL(ref); |