Skip to content

Commit f86f35d

Browse files
committed
Merge branch 'pr/4225'
2 parents f9921ad + 45071ce commit f86f35d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/git2/remote.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ GIT_EXTERN(int) git_remote_prune(git_remote *remote, const git_remote_callbacks
715715
* Peform all the steps from a push.
716716
*
717717
* @param remote the remote to push to
718-
* @param refspecs the refspecs to use for pushing. If none are
719-
* passed, the configured refspecs will be used
718+
* @param refspecs the refspecs to use for pushing. If NULL or an empty
719+
* array, the configured refspecs will be used
720720
* @param opts options to use for this push
721721
*/
722722
GIT_EXTERN(int) git_remote_push(git_remote *remote,

src/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_
24112411
proxy = &opts->proxy_opts;
24122412
}
24132413

2414-
assert(remote && refspecs);
2414+
assert(remote);
24152415

24162416
if ((error = git_remote_connect(remote, GIT_DIRECTION_PUSH, cbs, proxy, custom_headers)) < 0)
24172417
return error;

0 commit comments

Comments
 (0)