diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-11-03T12·33+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-11-03T12·55+0100 |
commit | 4dee01da7c7bc5d67dc916f159bfee8a873ac19b (patch) | |
tree | 335cc7473215f4833c58a28f6e000026f3c731de /src/libexpr/primops | |
parent | 0e77aa398240d04e4169208d14ea620b8507b732 (diff) |
fetchGit: Add a test
Diffstat (limited to 'src/libexpr/primops')
-rw-r--r-- | src/libexpr/primops/fetchMercurial.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchMercurial.cc b/src/libexpr/primops/fetchMercurial.cc index f48d003fcd1d..2a423f61bb89 100644 --- a/src/libexpr/primops/fetchMercurial.cc +++ b/src/libexpr/primops/fetchMercurial.cc @@ -72,7 +72,7 @@ HgInfo exportMercurial(ref<Store> store, const std::string & uri, time_t now = time(0); struct stat st; if (stat(stampFile.c_str(), &st) != 0 || - st.st_mtime < now - settings.tarballTtl) + st.st_mtime <= now - settings.tarballTtl) { /* Except that if this is a commit hash that we already have, we don't have to pull again. */ |