mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
a5183d7696
commit
12cb1c10a6
@@ -746,7 +746,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
|
||||
die(Q_("only %d entry can be shown at one time.",
|
||||
"only %d entries can be shown at one time.",
|
||||
MAX_REVS), MAX_REVS);
|
||||
if (!dwim_ref(*av, strlen(*av), &oid, &ref, 0))
|
||||
if (!repo_dwim_ref(the_repository, *av, strlen(*av), &oid,
|
||||
&ref, 0))
|
||||
die(_("no such ref %s"), *av);
|
||||
|
||||
/* Has the base been specified? */
|
||||
|
||||
Reference in New Issue
Block a user