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
397753f0
Commit
397753f0
authored
Jun 28, 2022
by
Yuang Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable shallow clone support in tests when necessary
parent
59189757
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
tests/grafts/basic.c
+1
-0
tests/grafts/shallow.c
+1
-0
No files found.
tests/grafts/basic.c
View file @
397753f0
...
@@ -7,6 +7,7 @@ static git_repository *g_repo;
...
@@ -7,6 +7,7 @@ static git_repository *g_repo;
void
test_grafts_basic__initialize
(
void
)
void
test_grafts_basic__initialize
(
void
)
{
{
git_libgit2_opts
(
GIT_OPT_ENABLE_SHALLOW
,
1
);
g_repo
=
cl_git_sandbox_init
(
"grafted.git"
);
g_repo
=
cl_git_sandbox_init
(
"grafted.git"
);
}
}
...
...
tests/grafts/shallow.c
View file @
397753f0
...
@@ -19,6 +19,7 @@ void test_grafts_shallow__unset_feature_flag(void)
...
@@ -19,6 +19,7 @@ void test_grafts_shallow__unset_feature_flag(void)
void
test_grafts_shallow__initialize
(
void
)
void
test_grafts_shallow__initialize
(
void
)
{
{
git_libgit2_opts
(
GIT_OPT_ENABLE_SHALLOW
,
1
);
cl_git_pass
(
git_oid_fromstr
(
&
g_shallow_oid
,
"be3563ae3f795b2b4353bcce3a527ad0a4f7f644"
));
cl_git_pass
(
git_oid_fromstr
(
&
g_shallow_oid
,
"be3563ae3f795b2b4353bcce3a527ad0a4f7f644"
));
}
}
...
...
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