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
42ea2f95
Unverified
Commit
42ea2f95
authored
Jul 25, 2019
by
Ian Hattendorf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone: whitespace in url ssh test
parent
ba2885da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
tests/CMakeLists.txt
+1
-1
tests/online/clone.c
+17
-1
No files found.
tests/CMakeLists.txt
View file @
42ea2f95
...
...
@@ -69,5 +69,5 @@ ADD_CLAR_TEST(offline -v -xonline)
ADD_CLAR_TEST(invasive -v -score::ftruncate -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
ADD_CLAR_TEST(online -v -sonline)
ADD_CLAR_TEST(gitdaemon -v -sonline::push)
ADD_CLAR_TEST(ssh -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths)
ADD_CLAR_TEST(ssh -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths
-sonline::clone::path_whitespace_ssh
)
ADD_CLAR_TEST(proxy -v -sonline::clone::proxy)
tests/online/clone.c
View file @
42ea2f95
...
...
@@ -864,7 +864,23 @@ void test_online_clone__proxy_cred_callback_after_failed_url_creds(void)
git_buf_dispose
(
&
url
);
}
void
test_online_clone__
url
_whitespace
(
void
)
void
test_online_clone__
path
_whitespace
(
void
)
{
cl_git_pass
(
git_clone
(
&
g_repo
,
"https://dev.azure.com/ianhattendorf/With%20Space/_git/With%20Space"
,
"./foo"
,
&
g_options
));
cl_assert
(
git_path_exists
(
"./foo/README.md"
));
}
void
test_online_clone__path_whitespace_ssh
(
void
)
{
#ifndef GIT_SSH
clar__skip
();
#endif
if
(
!
_remote_ssh_privkey
)
clar__skip
();
g_options
.
fetch_opts
.
callbacks
.
credentials
=
cred_cb
;
g_options
.
fetch_opts
.
callbacks
.
certificate_check
=
NULL
;
cl_git_pass
(
git_clone
(
&
g_repo
,
"ssh://git@ssh.dev.azure.com/v3/ianhattendorf/With%20Space/With%20Space"
,
"./foo"
,
&
g_options
));
cl_assert
(
git_path_exists
(
"./foo/README.md"
));
}
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