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
1fa8014a
Commit
1fa8014a
authored
Nov 22, 2021
by
punkymaniac
Committed by
Edward Thomson
Dec 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test for `git_str` usage instead of `git_buf`
See commit
f0e693b1
parent
8b0ffdcb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/worktree/worktree.c
+3
-3
No files found.
tests/worktree/worktree.c
View file @
1fa8014a
...
...
@@ -297,19 +297,19 @@ void test_worktree_worktree__add_no_checkout(void)
git_worktree
*
wt
;
git_repository
*
wtrepo
;
git_index
*
index
;
git_
buf
path
=
GIT_BUF
_INIT
;
git_
str
path
=
GIT_STR
_INIT
;
git_worktree_add_options
opts
=
GIT_WORKTREE_ADD_OPTIONS_INIT
;
opts
.
checkout_opts
.
checkout_strategy
=
GIT_CHECKOUT_NONE
;
cl_git_pass
(
git_
buf
_joinpath
(
&
path
,
fixture
.
repo
->
workdir
,
"../worktree-no-checkout"
));
cl_git_pass
(
git_
str
_joinpath
(
&
path
,
fixture
.
repo
->
workdir
,
"../worktree-no-checkout"
));
cl_git_pass
(
git_worktree_add
(
&
wt
,
fixture
.
repo
,
"worktree-no-checkout"
,
path
.
ptr
,
&
opts
));
cl_git_pass
(
git_repository_open
(
&
wtrepo
,
path
.
ptr
));
cl_git_pass
(
git_repository_index
(
&
index
,
wtrepo
));
cl_assert_equal_i
(
git_index_entrycount
(
index
),
0
);
git_
buf
_dispose
(
&
path
);
git_
str
_dispose
(
&
path
);
git_worktree_free
(
wt
);
git_repository_free
(
wtrepo
);
}
...
...
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