]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-fetch-pack.c
Record ns-timestamps if possible, but do not use it without USE_NSEC
[thirdparty/git.git] / builtin-fetch-pack.c
index 3b210c7fdfd0e5a75e5627099fc8fa183b8c0269..59b0b0a796b65b23ff0b9c4d219869b4293f60c7 100644 (file)
@@ -801,9 +801,7 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
                int fd;
 
                mtime.sec = st.st_mtime;
-#ifdef USE_NSEC
-               mtime.nsec = st.st_mtim.tv_nsec;
-#endif
+               mtime.nsec = ST_MTIME_NSEC(st);
                if (stat(shallow, &st)) {
                        if (mtime.sec)
                                die("shallow file was removed during fetch");