From: Ian Jackson Date: Sun, 30 Oct 2016 16:34:11 +0000 (+0000) Subject: dgit clone: Set timestamps in cloned tree to a single unified time. X-Git-Tag: archive/debian/2.9~31 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=4c09c958f20263601483e0150caf4787a064aa5e 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 --- diff --git a/debian/changelog b/debian/changelog index fb171751..4c354a47 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,9 @@ dgit (2.9~) unstable; urgency=low * New option --dgit-view-save= for split view quilt modes. In particular, means that the output of a split view quilt-fixup is left somewhere useful. + * 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). -- diff --git a/dgit b/dgit index 3e746d2c..efd89634 100755 --- a/dgit +++ b/dgit @@ -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"; }