chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dgit clone: Set timestamps in cloned tree to a single unified time.
[dgit.git]
/
dgit
diff --git
a/dgit
b/dgit
index 3e746d2cce9808bbc3ca1e74a48c4577e2ff7ee9..efd8963498f255344944c08d13ef832fc9af208b 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-2869,6
+2869,11
@@
sub clone ($) {
}
setup_new_tree();
runcmd @git, qw(reset --hard), lrref();
}
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";
}
printdone "ready for work in $dstdir";
}