| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
It looks like Windows is unable to read empty env var: 1) Failure: 6: online::clone::proxy_credentials_in_environment [D:\a\libgit2\libgit2\tests\online\clone.c:872] 6: Function call failed: (git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options)) 6: error -1 - could not read environment variable 'no_proxy': (See https://github.com/libgit2/libgit2/runs/1885965142?check_suite_focus=true#step:7:3127). Done this: diff --git a/tests/online/clone.c b/tests/online/clone.c
index b1c59b3d4..ce581d89d 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -867,7 +867,7 @@ void test_online_clone__proxy_credentials_in_environment(void)
cl_setenv("HTTP_PROXY", url.ptr);
cl_setenv("HTTPS_PROXY", url.ptr);
- cl_setenv("NO_PROXY", "");
+ cl_setenv("NO_PROXY", NULL);
cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options));
|
Sorry, something went wrong.
|
@ethomson Would you review this? |
Sorry, something went wrong.
|
Hi @sathieu! Thanks for the pull request. Sorry for the delay, I've been quite busy with work and home responsibilities. I'll try to take a look 🔜 |
Sorry, something went wrong.
|
@ethomson I've rebased. Could you please review? |
Sorry, something went wrong.
Item 2 of 3 from libgit2#4164 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
|
@ethomson Please review. We're using this patch without problems since months. I've added support for *.example.com with same behavior as .example.com, as some of my colleague use this syntax. |
Sorry, something went wrong.
|
@ethomson Please review this PR. As you look busy: can someone else review? |
Sorry, something went wrong.
|
I have the same issue, could you please merge? :) |
Sorry, something went wrong.
|
@ethomson Any chance to have this merged in 1.2? |
Sorry, something went wrong.
|
@sathieu I was actually looking at this last night. I'll suggest some refactorings to reduce the amount of pointer arithmetic and use some of our existing utility functions instead, but yes, I think that we should land this for 1.2. |
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Item 2 of 3 from #4164.
Note that the behavior is same as wget (and not same as curl). Some examples: