1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

fetchGit: Add a test

This commit is contained in:
Eelco Dolstra 2017-11-03 13:33:50 +01:00
parent 0e77aa3982
commit 4dee01da7c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
6 changed files with 90 additions and 2 deletions

View file

@ -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. */