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
0fd80681
Commit
0fd80681
authored
Nov 24, 2020
by
Reginald McLean
Committed by
Edward Thomson
May 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing is_prunable test
parent
9d41a3fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
tests/libgit2/worktree/worktree.c
+13
-0
No files found.
tests/libgit2/worktree/worktree.c
View file @
0fd80681
...
...
@@ -645,3 +645,16 @@ void test_worktree_worktree__validate_invalid_worktreedir(void)
git_worktree_free
(
wt
);
}
void
test_worktree_worktree__is_prunable_missing_repo
(
void
)
{
git_worktree
*
wt
;
cl_git_pass
(
git_worktree_lookup
(
&
wt
,
fixture
.
repo
,
"testrepo-worktree"
));
p_rename
(
"testrepo"
,
"testrepo-tmp"
);
/* Should not be prunable since the repository moved */
cl_assert
(
!
git_worktree_is_prunable
(
wt
,
NULL
));
p_rename
(
"testrepo-tmp"
,
"testrepo"
);
git_worktree_free
(
wt
);
}
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