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
c6bf03b4
Commit
c6bf03b4
authored
Mar 28, 2015
by
Mike McQuaid
Committed by
Carlos Martín Nieto
Apr 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add failing subdirectory gitignore attr test.
parent
de355f23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
tests/attr/ignore.c
+18
-0
No files found.
tests/attr/ignore.c
View file @
c6bf03b4
...
...
@@ -146,6 +146,24 @@ void test_attr_ignore__skip_gitignore_directory(void)
assert_is_ignored
(
true
,
"NewFolder/NewFolder/File.txt"
);
}
void
test_attr_ignore__subdirectory_gitignore
(
void
)
{
p_unlink
(
"attr/.gitignore"
);
cl_assert
(
!
git_path_exists
(
"attr/.gitignore"
));
cl_git_mkfile
(
"attr/.gitignore"
,
"file1
\n
"
);
p_mkdir
(
"attr/dir"
,
0777
);
cl_git_mkfile
(
"attr/dir/.gitignore"
,
"file2/
\n
"
);
assert_is_ignored
(
true
,
"file1"
);
assert_is_ignored
(
true
,
"dir/file1"
);
assert_is_ignored
(
true
,
"dir/file2"
);
/* in ignored dir */
assert_is_ignored
(
false
,
"dir/file3"
);
}
void
test_attr_ignore__expand_tilde_to_homedir
(
void
)
{
git_config
*
cfg
;
...
...
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