Don't zero src's lastModified if it has one

This commit is contained in:
Eelco Dolstra 2020-11-26 21:59:33 +01:00
parent 8812d6d109
commit 99f1c2157f

View file

@ -89,8 +89,8 @@ let
isShallow = builtins.pathExists (src + "/.git/shallow");
in
(if src ? outPath then src else tryFetchGit src)
// { lastModified = 0; lastModifiedDate = formatSecondsSinceEpoch 0; };
{ lastModified = 0; lastModifiedDate = formatSecondsSinceEpoch 0; }
// (if src ? outPath then src else tryFetchGit src);
# Format number of seconds in the Unix epoch as %Y%m%d%H%M%S.
formatSecondsSinceEpoch = t: