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
dc4906f1
Commit
dc4906f1
authored
May 15, 2014
by
Alan Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip unreadable files for now.
parent
158c8ba1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/path.c
+1
-2
tests/status/worktree.c
+5
-2
No files found.
src/path.c
View file @
dc4906f1
...
...
@@ -1108,13 +1108,12 @@ int git_path_dirload_with_stat(
if
((
error
=
git_buf_joinpath
(
&
full
,
full
.
ptr
,
ps
->
path
))
<
0
||
(
error
=
git_path_lstat
(
full
.
ptr
,
&
ps
->
st
))
<
0
)
{
if
(
error
==
GIT_ENOTFOUND
)
{
if
(
error
==
GIT_ENOTFOUND
||
error
==
GIT_ENOACCESS
)
{
giterr_clear
();
error
=
0
;
git_vector_remove
(
contents
,
i
--
);
continue
;
}
break
;
}
...
...
tests/status/worktree.c
View file @
dc4906f1
...
...
@@ -955,16 +955,19 @@ void test_status_worktree__nopermissions(void)
counts
.
expected_entry_count
=
1
;
counts
.
expected_paths
=
expected_paths
;
counts
.
expected_statuses
=
expected_statuses
;
counts
.
debug
=
1
;
opts
.
show
=
GIT_STATUS_SHOW_WORKDIR_ONLY
;
opts
.
flags
=
GIT_STATUS_OPT_DEFAULTS
;
cl_git_pass
(
git_status_foreach_ext
(
repo
,
&
opts
,
cb_status__normal
,
&
counts
)
);
// Restore permissions so we can cleanup :)
p_chmod
(
"empty_standard_repo/no_permission"
,
0777
);
cl_assert_equal_i
(
counts
.
expected_entry_count
,
counts
.
entry_count
);
cl_assert_equal_i
(
0
,
counts
.
wrong_status_flags_count
);
cl_assert_equal_i
(
0
,
counts
.
wrong_sorted_path
);
// Restore permissions so we can cleanup :)
p_chmod
(
"empty_standard_repo/no_permission"
,
0777
);
}
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