Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-02 00:50:39 +0400
committerRussell Belfer <rb@github.com>2013-05-02 00:50:39 +0400
commite830c020f3915e272cf0810899f40dd5c84fbbf6 (patch)
tree70de863436c54ecbdf9c7a181d52ed963a35c952 /src/fileops.c
parent52c102b7f679674b14d046a62091f76431d3eb1b (diff)
Report stat error when checking if file modified
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c
index d6244711f..cc55207e0 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -988,8 +988,10 @@ int git_futils_filestamp_check(
if (stamp == NULL)
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;
+ }
if (stamp->mtime == (git_time_t)st.st_mtime &&
stamp->size == (git_off_t)st.st_size &&