Commit 52ee0e8e by Carlos Martín Nieto

remote: verify there is a push foreach callback set

parent f7fcb18f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment