From 973a09a4ca6502e45826ec310aabf931c48f196e Mon Sep 17 00:00:00 2001 From: Axel Rasmussen Date: Thu, 1 Oct 2015 18:35:21 -0700 Subject: [PATCH] index: don't populate nsec values if GIT_USE_NSEC is off --- src/fileops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fileops.c b/src/fileops.c index 5b54298fa..a13a40655 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -1081,6 +1081,9 @@ void git_futils_filestamp_set_from_stat( if (st) { stamp->mtime = *statmtime; +#if !defined(GIT_USE_NSEC) + stamp->mtime.tv_nsec = 0; +#endif stamp->size = (git_off_t)st->st_size; stamp->ino = (unsigned int)st->st_ino; } else {