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
a08e8825
Commit
a08e8825
authored
Aug 30, 2016
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3907 from steffhip/git_checkout_tree-fix
parents
dfd79576
88cfe614
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
src/checkout.c
+1
-1
tests/checkout/tree.c
+4
-0
No files found.
src/checkout.c
View file @
a08e8825
...
...
@@ -2722,7 +2722,7 @@ int git_checkout_tree(
if
((
error
=
git_repository_index
(
&
index
,
repo
))
<
0
)
return
error
;
if
((
opts
->
checkout_strategy
&
GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH
))
{
if
(
opts
&&
(
opts
->
checkout_strategy
&
GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH
))
{
iter_opts
.
pathlist
.
count
=
opts
->
paths
.
count
;
iter_opts
.
pathlist
.
strings
=
opts
->
paths
.
strings
;
}
...
...
tests/checkout/tree.c
View file @
a08e8825
...
...
@@ -1479,3 +1479,7 @@ void test_checkout_tree__baseline_is_empty_when_no_index(void)
git_reference_free
(
head
);
}
void
test_checkout_tree__nullopts
(
void
)
{
cl_git_pass
(
git_checkout_tree
(
g_repo
,
NULL
,
NULL
));
}
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