Allow NULL refspec in git_remote_push

Since this is allowed in `git_remote_upload`
This commit is contained in:
Yichao Yu 2017-04-29 13:00:07 -04:00
parent 7df580fae6
commit 90cdf44ffb
No known key found for this signature in database
GPG Key ID: 07F45E2A1937DD32

View File

@ -2412,7 +2412,7 @@ int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_
proxy = &opts->proxy_opts;
}
assert(remote && refspecs);
assert(remote);
if ((error = git_remote_connect(remote, GIT_DIRECTION_PUSH, cbs, proxy, custom_headers)) < 0)
return error;