fetchGit: Add a test

This commit is contained in:
Eelco Dolstra
2017-11-03 13:55:30 +01:00
parent 0e77aa3982
commit 4dee01da7c
6 changed files with 90 additions and 2 deletions
+1 -1
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. */