Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90cdf44

Browse files
committed
Allow NULL refspec in git_remote_push
Since this is allowed in `git_remote_upload`
1 parent 7df580f commit 90cdf44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remote.c

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

2415-
assert(remote && refspecs);
2415+
assert(remote);
24162416

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

0 commit comments

Comments
 (0)