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
90553479
Commit
90553479
authored
May 20, 2014
by
Alan Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename GIT_ENOACCESS -> GIT_EUNREADABLE
parent
dc4906f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
include/git2/errors.h
+1
-1
src/path.c
+4
-7
No files found.
include/git2/errors.h
View file @
90553479
...
...
@@ -41,7 +41,7 @@ typedef enum {
GIT_EMERGECONFLICT
=
-
13
,
/*< Merge conflicts prevented operation */
GIT_ELOCKED
=
-
14
,
/*< Lock file prevented operation */
GIT_EMODIFIED
=
-
15
,
/*< Reference value does not match expected */
GIT_E
NOACCESS
=
-
16
,
/*< Access denied attempting operation
*/
GIT_E
UNREADABLE
=
-
16
,
/*< File or folder is unreadable
*/
GIT_PASSTHROUGH
=
-
30
,
/*< Internal only */
GIT_ITEROVER
=
-
31
,
/*< Signals end of iteration with iterator */
...
...
src/path.c
View file @
90553479
...
...
@@ -560,14 +560,10 @@ int git_path_set_error(int errno_value, const char *path, const char *action)
case
EEXIST
:
giterr_set
(
GITERR_OS
,
"Failed %s - '%s' already exists"
,
action
,
path
);
return
GIT_EEXISTS
;
case
EACCES
:
giterr_set
(
GITERR_OS
,
"Failed %s - '%s' permission denied"
,
action
,
path
);
return
GIT_ENOACCESS
;
default:
giterr_set
(
GITERR_OS
,
"Could not %s '%s'"
,
action
,
path
);
return
-
1
;
return
GIT_EUNREADABLE
;
}
}
...
...
@@ -1108,12 +1104,13 @@ 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
||
error
==
GIT_ENOACCESS
)
{
if
(
error
==
GIT_ENOTFOUND
)
{
giterr_clear
();
error
=
0
;
git_vector_remove
(
contents
,
i
--
);
continue
;
}
break
;
}
...
...
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