diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-30 16:34:11 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-30 19:50:48 +0000 |
commit | 4c09c958f20263601483e0150caf4787a064aa5e (patch) | |
tree | 4954b75111ecbf1b2eb7bfb1da86ec98c1ec4635 /dgit | |
parent | 946a01315097195bb25e1ea2b0a85ed495c822c4 (diff) |
dgit clone: Set timestamps in cloned tree to a single unified time.
This makes it less likely that the user will trip over any
timestamp-dependent FTBFS bugs (eg #842452).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2869,6 +2869,11 @@ sub clone ($) { } setup_new_tree(); runcmd @git, qw(reset --hard), lrref(); + runcmd qw(bash -ec), <<'END'; + set -o pipefail + git ls-tree -r --name-only -z HEAD | \ + xargs -0r touch -r . -- +END printdone "ready for work in $dstdir"; } |