diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-14 21:00:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-14 21:00:42 +0000 |
commit | 5b08a71fcbfa784bded6e753508501fae870a612 (patch) | |
tree | ae9da0ea20d33f3beaab8604ef695dab852b8dfc /tests/online/clone.c | |
parent | 99afd41f1c43c856d39e3b9572d7a2103875a771 (diff) | |
parent | 35d86c775bb9ec7ee85afe90176cb278e56872a2 (diff) | |
download | libgit2-5b08a71fcbfa784bded6e753508501fae870a612.tar.gz |
Merge pull request #4934 from stinb/proxy-crash
Fix crash on remote connection when GIT_PROXY_AUTO is set but no proxy is detected
Diffstat (limited to 'tests/online/clone.c')
-rw-r--r-- | tests/online/clone.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index ce49f180f..928b7bc31 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -840,3 +840,10 @@ void test_online_clone__proxy_credentials_in_environment(void) git_buf_dispose(&url); } + +void test_online_clone__proxy_auto_not_detected(void) +{ + g_options.fetch_opts.proxy_opts.type = GIT_PROXY_AUTO; + + cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options)); +} |