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
e830c020
Commit
e830c020
authored
May 01, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report stat error when checking if file modified
parent
52c102b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/fileops.c
+3
-1
No files found.
src/fileops.c
View file @
e830c020
...
@@ -988,8 +988,10 @@ int git_futils_filestamp_check(
...
@@ -988,8 +988,10 @@ int git_futils_filestamp_check(
if
(
stamp
==
NULL
)
if
(
stamp
==
NULL
)
return
1
;
return
1
;
if
(
p_stat
(
path
,
&
st
)
<
0
)
if
(
p_stat
(
path
,
&
st
)
<
0
)
{
giterr_set
(
GITERR_OS
,
"Could not stat '%s'"
,
path
);
return
GIT_ENOTFOUND
;
return
GIT_ENOTFOUND
;
}
if
(
stamp
->
mtime
==
(
git_time_t
)
st
.
st_mtime
&&
if
(
stamp
->
mtime
==
(
git_time_t
)
st
.
st_mtime
&&
stamp
->
size
==
(
git_off_t
)
st
.
st_size
&&
stamp
->
size
==
(
git_off_t
)
st
.
st_size
&&
...
...
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