Commit f86f35d6 by Edward Thomson

Merge branch 'pr/4225'

parents f9921ad7 45071cec
...@@ -715,8 +715,8 @@ GIT_EXTERN(int) git_remote_prune(git_remote *remote, const git_remote_callbacks ...@@ -715,8 +715,8 @@ GIT_EXTERN(int) git_remote_prune(git_remote *remote, const git_remote_callbacks
* Peform all the steps from a push. * Peform all the steps from a push.
* *
* @param remote the remote to push to * @param remote the remote to push to
* @param refspecs the refspecs to use for pushing. If none are * @param refspecs the refspecs to use for pushing. If NULL or an empty
* passed, the configured refspecs will be used * array, the configured refspecs will be used
* @param opts options to use for this push * @param opts options to use for this push
*/ */
GIT_EXTERN(int) git_remote_push(git_remote *remote, GIT_EXTERN(int) git_remote_push(git_remote *remote,
......
...@@ -2411,7 +2411,7 @@ int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_ ...@@ -2411,7 +2411,7 @@ int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_
proxy = &opts->proxy_opts; proxy = &opts->proxy_opts;
} }
assert(remote && refspecs); assert(remote);
if ((error = git_remote_connect(remote, GIT_DIRECTION_PUSH, cbs, proxy, custom_headers)) < 0) if ((error = git_remote_connect(remote, GIT_DIRECTION_PUSH, cbs, proxy, custom_headers)) < 0)
return error; return error;
......
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