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
0d8b9373
Commit
0d8b9373
authored
Dec 03, 2019
by
Edward Thomson
Committed by
Patrick Steinhardt
Dec 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree: ensure we protect NTFS paths everywhere
parent
50a33c30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tests/object/tree/write.c
+2
-4
No files found.
tests/object/tree/write.c
View file @
0d8b9373
...
@@ -418,10 +418,8 @@ void test_object_tree_write__protect_filesystems(void)
...
@@ -418,10 +418,8 @@ void test_object_tree_write__protect_filesystems(void)
*/
*/
cl_git_pass
(
git_treebuilder_new
(
&
builder
,
g_repo
,
NULL
));
cl_git_pass
(
git_treebuilder_new
(
&
builder
,
g_repo
,
NULL
));
#ifndef GIT_WIN32
cl_git_fail
(
git_treebuilder_insert
(
NULL
,
builder
,
".git."
,
&
bid
,
GIT_FILEMODE_BLOB
));
cl_git_pass
(
git_treebuilder_insert
(
NULL
,
builder
,
".git."
,
&
bid
,
GIT_FILEMODE_BLOB
));
cl_git_fail
(
git_treebuilder_insert
(
NULL
,
builder
,
"git~1"
,
&
bid
,
GIT_FILEMODE_BLOB
));
cl_git_pass
(
git_treebuilder_insert
(
NULL
,
builder
,
"git~1"
,
&
bid
,
GIT_FILEMODE_BLOB
));
#endif
#ifndef __APPLE__
#ifndef __APPLE__
cl_git_pass
(
git_treebuilder_insert
(
NULL
,
builder
,
".git
\xef\xbb\xbf
"
,
&
bid
,
GIT_FILEMODE_BLOB
));
cl_git_pass
(
git_treebuilder_insert
(
NULL
,
builder
,
".git
\xef\xbb\xbf
"
,
&
bid
,
GIT_FILEMODE_BLOB
));
...
...
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