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
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user