diff options
author | Ben Straub <bs@github.com> | 2013-02-01 02:04:21 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-02-01 02:04:21 +0400 |
commit | cf7038a65cb080a2946202fe6cbbe52aefae1fd4 (patch) | |
tree | 379e3be397c781f7af8e06d89f4fb024bd8c05db /tests-clar/online/clone.c | |
parent | 7602cb7c0ea0d69efd30640af234be20393bf57c (diff) |
Enhance url parsing to include passwords
Diffstat (limited to 'tests-clar/online/clone.c')
-rw-r--r-- | tests-clar/online/clone.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests-clar/online/clone.c b/tests-clar/online/clone.c index 12b9e0388..0bc744013 100644 --- a/tests-clar/online/clone.c +++ b/tests-clar/online/clone.c @@ -7,6 +7,7 @@ #define LIVE_REPO_URL "http://github.com/libgit2/TestGitRepository" #define LIVE_EMPTYREPO_URL "http://github.com/libgit2/TestEmptyRepository" #define BB_REPO_URL "https://libgit2@bitbucket.org/libgit2/testgitrepository.git" +#define BB_REPO_URL_WITH_PASS "https://libgit2:libgit2@bitbucket.org/libgit2/testgitrepository.git" static git_repository *g_repo; static git_clone_options g_options; @@ -167,4 +168,8 @@ void test_online_clone__bitbucket_style(void) cl_git_pass(git_clone(&g_repo, BB_REPO_URL, "./foo", &g_options)); git_repository_free(g_repo); g_repo = NULL; cl_fixture_cleanup("./foo"); + + cl_git_pass(git_clone(&g_repo, BB_REPO_URL_WITH_PASS, "./foo", &g_options)); + git_repository_free(g_repo); g_repo = NULL; + cl_fixture_cleanup("./foo"); } |