summaryrefslogtreecommitdiff
path: root/src/remote.c
diff options
context:
space:
mode:
authorYichao Yu <yyc1992@gmail.com>2017-04-29 13:00:07 -0400
committerYichao Yu <yyc1992@gmail.com>2017-04-29 13:00:07 -0400
commit90cdf44ffb7c78cb9d36709f8a07a216e06bd919 (patch)
tree8ad0c4a4158f04650099f80a9e639a1e1750eca2 /src/remote.c
parent7df580fae64fad8c6682208e297df806ff34385e (diff)
downloadlibgit2-90cdf44ffb7c78cb9d36709f8a07a216e06bd919.tar.gz
Allow NULL refspec in git_remote_push
Since this is allowed in `git_remote_upload`
Diffstat (limited to 'src/remote.c')
-rw-r--r--src/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c
index d3132f75c..4cbc45eda 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -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;