From e830c020f3915e272cf0810899f40dd5c84fbbf6 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Wed, 1 May 2013 13:50:39 -0700 Subject: [PATCH] Report stat error when checking if file modified --- src/fileops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 &&