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
158c8ba1
Commit
158c8ba1
authored
May 15, 2014
by
Alan Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return a specific error for EACCES.
parent
8d3a2d5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
include/git2/errors.h
+1
-0
src/path.c
+4
-0
No files found.
include/git2/errors.h
View file @
158c8ba1
...
...
@@ -41,6 +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_ENOACCESS
=
-
16
,
/*< Access denied attempting operation */
GIT_PASSTHROUGH
=
-
30
,
/*< Internal only */
GIT_ITEROVER
=
-
31
,
/*< Signals end of iteration with iterator */
...
...
src/path.c
View file @
158c8ba1
...
...
@@ -561,6 +561,10 @@ int git_path_set_error(int errno_value, const char *path, const char *action)
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
;
...
...
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