Merge branch 'jx/proc-receive-hook' into pu
"git receive-pack" that accepts requests by "git push" learned to outsource most of the ref updates to the new "proc-receive" hook. * jx/proc-receive-hook: doc: add documentation for the proc-receive hook transport: parse report options for tracking refs t5411: test updates of remote-tracking branches receive-pack: new config receive.procReceiveRefs refs.c: refactor to reuse ref_is_hidden() receive-pack: feed report options to post-receive doc: add document for capability report-status-v2 New capability "report-status-v2" for git-push receive-pack: add new proc-receive hook t5411: add basic test cases for proc-receive hook transport: not report a non-head push as a branch
This commit is contained in:
4
remote.c
4
remote.c
@ -767,7 +767,7 @@ struct ref *copy_ref(const struct ref *ref)
|
||||
memcpy(cpy, ref, len);
|
||||
cpy->next = NULL;
|
||||
cpy->symref = xstrdup_or_null(ref->symref);
|
||||
cpy->remote_status = xstrdup_or_null(ref->remote_status);
|
||||
cpy->report.error_message = xstrdup_or_null(ref->report.error_message);
|
||||
cpy->peer_ref = copy_ref(ref->peer_ref);
|
||||
return cpy;
|
||||
}
|
||||
@ -789,7 +789,7 @@ void free_one_ref(struct ref *ref)
|
||||
if (!ref)
|
||||
return;
|
||||
free_one_ref(ref->peer_ref);
|
||||
free(ref->remote_status);
|
||||
free((void *)ref->report.error_message);
|
||||
free(ref->symref);
|
||||
free(ref);
|
||||
}
|
||||
|
Reference in New Issue
Block a user