-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21665 from JuliaLang/yyc/libgit2
Add libgit2 patch to allow NULL refspec in git_remote_push
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 90cdf44ffb7c78cb9d36709f8a07a216e06bd919 Mon Sep 17 00:00:00 2001 | ||
From: Yichao Yu <[email protected]> | ||
Date: Sat, 29 Apr 2017 13:00:07 -0400 | ||
Subject: [PATCH] Allow NULL refspec in git_remote_push | ||
|
||
Since this is allowed in `git_remote_upload` | ||
--- | ||
src/remote.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
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; | ||
-- | ||
2.12.2 | ||
|