mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-02 07:11:30 +00:00
remote: verify there is a push foreach callback set
This commit is contained in:
parent
f7fcb18f8a
commit
52ee0e8e6d
@ -2166,7 +2166,8 @@ int git_remote_push(git_remote *remote, git_strarray *refspecs, const git_push_o
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if ((error = git_push_status_foreach(push, cbs->push_update_reference, cbs->payload)) < 0)
|
||||
if (cbs->push_update_reference &&
|
||||
(error = git_push_status_foreach(push, cbs->push_update_reference, cbs->payload)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
error = git_push_update_tips(push, signature, reflog_message);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user