mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Merge pull request #11466 from DeterminateSystems/git-mtime-warning
Git fetcher: Don't update mtime of ref file if fetching by rev
This commit is contained in:
commit
1c2508f176
1 changed files with 3 additions and 2 deletions
|
@ -584,9 +584,10 @@ struct GitInputScheme : InputScheme
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
setWriteTime(localRefFile, now, now);
|
if (!input.getRev())
|
||||||
|
setWriteTime(localRefFile, now, now);
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
warn("could not update mtime for file '%s': %s", localRefFile, e.msg());
|
warn("could not update mtime for file '%s': %s", localRefFile, e.info().msg);
|
||||||
}
|
}
|
||||||
if (!originalRef && !storeCachedHead(repoInfo.url, ref))
|
if (!originalRef && !storeCachedHead(repoInfo.url, ref))
|
||||||
warn("could not update cached head '%s' for '%s'", ref, repoInfo.url);
|
warn("could not update cached head '%s' for '%s'", ref, repoInfo.url);
|
||||||
|
|
Loading…
Reference in a new issue