refs: report ref type from lock_any_ref_for_update
Expose lock_ref_sha1_basic's type_p argument to callers of lock_any_ref_for_update. Update all call sites to ignore it by passing NULL for now. Signed-off-by: Brad King <brad.king@kitware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
2be778a8ac
commit
9bbb0fa1fd
2
branch.c
2
branch.c
@ -291,7 +291,7 @@ void create_branch(const char *head,
|
||||
hashcpy(sha1, commit->object.sha1);
|
||||
|
||||
if (!dont_change_ref) {
|
||||
lock = lock_any_ref_for_update(ref.buf, NULL, 0);
|
||||
lock = lock_any_ref_for_update(ref.buf, NULL, 0, NULL);
|
||||
if (!lock)
|
||||
die_errno(_("Failed to lock ref for update"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user