Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Record ns-timestamps if possible, but do not use it without USE_NSEC
[gitweb.git]
/
builtin-fetch-pack.c
diff --git
a/builtin-fetch-pack.c
b/builtin-fetch-pack.c
index 3b210c7fdfd0e5a75e5627099fc8fa183b8c0269..59b0b0a796b65b23ff0b9c4d219869b4293f60c7 100644
(file)
--- a/
builtin-fetch-pack.c
+++ b/
builtin-fetch-pack.c
@@
-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");