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
3
commit.c
3
commit.c
@ -996,7 +996,8 @@ struct commit *get_fork_point(const char *refname, struct commit *commit)
|
||||
struct commit *ret = NULL;
|
||||
char *full_refname;
|
||||
|
||||
switch (dwim_ref(refname, strlen(refname), &oid, &full_refname, 0)) {
|
||||
switch (repo_dwim_ref(the_repository, refname, strlen(refname), &oid,
|
||||
&full_refname, 0)) {
|
||||
case 0:
|
||||
die("No such ref: '%s'", refname);
|
||||
case 1:
|
||||
|
Reference in New Issue
Block a user