Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
d728cb61
Commit
d728cb61
authored
Jan 01, 2022
by
Peter Pettersson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: add url-like path to online clone tests
parent
03a582b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tests/libgit2/online/clone.c
+15
-0
No files found.
tests/libgit2/online/clone.c
View file @
d728cb61
...
...
@@ -7,6 +7,7 @@
#include "refs.h"
#define LIVE_REPO_URL "http://github.com/libgit2/TestGitRepository"
#define LIVE_REPO_AS_DIR "http:/github.com/libgit2/TestGitRepository"
#define LIVE_EMPTYREPO_URL "http://github.com/libgit2/TestEmptyRepository"
#define BB_REPO_URL "https://libgit2-test@bitbucket.org/libgit2-test/testgitrepository.git"
#define BB_REPO_URL_WITH_PASS "https://libgit2-test:YT77Ppm2nq8w4TYjGS8U@bitbucket.org/libgit2-test/testgitrepository.git"
...
...
@@ -115,6 +116,16 @@ void test_online_clone__initialize(void)
if
(
_remote_expectcontinue
)
git_libgit2_opts
(
GIT_OPT_ENABLE_HTTP_EXPECT_CONTINUE
,
1
);
#if !defined(GIT_WIN32)
/*
* On system that allows ':' in filenames "http://path" can be misinterpreted
* as the local path "http:/path".
* Create a local non-repository path that looks like LIVE_REPO_URL to make
* sure we can handle cloning despite this directory being around.
*/
git_futils_mkdir_r
(
LIVE_REPO_AS_DIR
,
0777
);
#endif
}
void
test_online_clone__cleanup
(
void
)
...
...
@@ -127,6 +138,10 @@ void test_online_clone__cleanup(void)
cl_fixture_cleanup
(
"./initial"
);
cl_fixture_cleanup
(
"./subsequent"
);
#if !defined(GIT_WIN32)
cl_fixture_cleanup
(
"http:"
);
#endif
git__free
(
_remote_url
);
git__free
(
_remote_user
);
git__free
(
_remote_pass
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment