X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http-push.c;h=ecefdfd4f8c9c17282f5cec10640343359278028;hb=67e78c3b8aeb44681b2d4ab2cf97145b7cc9a7a2;hp=670ff007beb8a5ba3043045a0b31399cd108c310;hpb=551029af305e04bed638771a3932e376243dddcb;p=git.git diff --git a/http-push.c b/http-push.c index 670ff007b..ecefdfd4f 100644 --- a/http-push.c +++ b/http-push.c @@ -1864,7 +1864,7 @@ static int update_remote(unsigned char *sha1, struct remote_lock *lock) static struct ref *local_refs, **local_tail; static struct ref *remote_refs, **remote_tail; -static int one_local_ref(const char *refname, const unsigned char *sha1) +static int one_local_ref(const char *refname, const unsigned char *sha1, int flag, void *cb_data) { struct ref *ref; int len = strlen(refname) + 1; @@ -1913,7 +1913,7 @@ static void one_remote_ref(char *refname) static void get_local_heads(void) { local_tail = &local_refs; - for_each_ref(one_local_ref); + for_each_ref(one_local_ref, NULL); } static void get_dav_remote_heads(void)