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
60297256
Commit
60297256
authored
Apr 04, 2017
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: worktree::refs: convert spaces to tabs
parent
caf7a7a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
tests/worktree/refs.c
+14
-14
No files found.
tests/worktree/refs.c
View file @
60297256
...
...
@@ -107,28 +107,28 @@ void test_worktree_refs__set_head_fails_when_already_checked_out(void)
void
test_worktree_refs__delete_fails_for_checked_out_branch
(
void
)
{
git_reference
*
branch
;
git_reference
*
branch
;
cl_git_pass
(
git_branch_lookup
(
&
branch
,
fixture
.
repo
,
"testrepo-worktree"
,
GIT_BRANCH_LOCAL
));
cl_git_fail
(
git_branch_delete
(
branch
));
cl_git_pass
(
git_branch_lookup
(
&
branch
,
fixture
.
repo
,
"testrepo-worktree"
,
GIT_BRANCH_LOCAL
));
cl_git_fail
(
git_branch_delete
(
branch
));
git_reference_free
(
branch
);
git_reference_free
(
branch
);
}
void
test_worktree_refs__delete_succeeds_after_pruning_worktree
(
void
)
{
git_reference
*
branch
;
git_worktree
*
worktree
;
git_reference
*
branch
;
git_worktree
*
worktree
;
cl_git_pass
(
git_worktree_lookup
(
&
worktree
,
fixture
.
repo
,
fixture
.
worktreename
));
cl_git_pass
(
git_worktree_prune
(
worktree
,
GIT_WORKTREE_PRUNE_VALID
));
git_worktree_free
(
worktree
);
cl_git_pass
(
git_worktree_lookup
(
&
worktree
,
fixture
.
repo
,
fixture
.
worktreename
));
cl_git_pass
(
git_worktree_prune
(
worktree
,
GIT_WORKTREE_PRUNE_VALID
));
git_worktree_free
(
worktree
);
cl_git_pass
(
git_branch_lookup
(
&
branch
,
fixture
.
repo
,
"testrepo-worktree"
,
GIT_BRANCH_LOCAL
));
cl_git_pass
(
git_branch_delete
(
branch
));
git_reference_free
(
branch
);
cl_git_pass
(
git_branch_lookup
(
&
branch
,
fixture
.
repo
,
"testrepo-worktree"
,
GIT_BRANCH_LOCAL
));
cl_git_pass
(
git_branch_delete
(
branch
));
git_reference_free
(
branch
);
}
void
test_worktree_refs__creating_refs_uses_commondir
(
void
)
...
...
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