diff options
| author | Patrick Steinhardt <ps@pks.im> | 2020-06-03 07:40:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 07:40:59 +0200 |
| commit | 53a8f4631ea695d8bd4aa2a5b762adc13c6a806d (patch) | |
| tree | e4ef077dabfd504da679a1cca6c251fb3cdbdf51 /tests/online | |
| parent | 6de8aa7f3144efe10d706bca513c8add24e8f407 (diff) | |
| parent | 04c7bdb42e4e8b374d5880358c7911236795fbcb (diff) | |
| download | libgit2-53a8f4631ea695d8bd4aa2a5b762adc13c6a806d.tar.gz | |
Merge pull request #5536 from libgit2/ethomson/http
httpclient: support googlesource
Diffstat (limited to 'tests/online')
| -rw-r--r-- | tests/online/clone.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 034d0c2e8..9107956bd 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -11,6 +11,7 @@ #define BB_REPO_URL "https://libgit3@bitbucket.org/libgit2/testgitrepository.git" #define BB_REPO_URL_WITH_PASS "https://libgit3:libgit3@bitbucket.org/libgit2/testgitrepository.git" #define BB_REPO_URL_WITH_WRONG_PASS "https://libgit3:wrong@bitbucket.org/libgit2/testgitrepository.git" +#define GOOGLESOURCE_REPO_URL "https://chromium.googlesource.com/external/github.com/sergi/go-diff" #define SSH_REPO_URL "ssh://github.com/libgit2/TestGitRepository" @@ -463,6 +464,13 @@ void test_online_clone__bitbucket_falls_back_to_specified_creds(void) cl_fixture_cleanup("./foo"); } +void test_online_clone__googlesource(void) +{ + cl_git_pass(git_clone(&g_repo, GOOGLESOURCE_REPO_URL, "./foo", &g_options)); + git_repository_free(g_repo); g_repo = NULL; + cl_fixture_cleanup("./foo"); +} + static int cancel_at_half(const git_indexer_progress *stats, void *payload) { GIT_UNUSED(payload); |
