Don't zero src's lastModified if it has one
This commit is contained in:
parent
8812d6d109
commit
99f1c2157f
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue