From: Ian Jackson Date: Sat, 2 Jul 2016 10:24:28 +0000 (+0100) Subject: Test suite: tartree-edit: gitfetchinfo: Specify commit timestamps X-Git-Tag: archive/debian/2.0~351 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=312eeea6721530096c252d25f325762e96880cdb;p=dgit.git Test suite: tartree-edit: gitfetchinfo: Specify commit timestamps We want the commit timestamps to be predictable (ie, to depend on the source info only), so that we don't show spurious disagreement between two working trees. So, use the timestamp of the HEAD commit. --- diff --git a/tests/tartree-edit b/tests/tartree-edit index 76e51b67..1aeab3d4 100755 --- a/tests/tartree-edit +++ b/tests/tartree-edit @@ -129,6 +129,9 @@ tryat_gitfetchinfo () { git fetch --no-tags -p "$remote" \ +"HEAD:refs/remotes/$remote/HEAD" cd $innerwd + GIT_AUTHOR_DATE=$(git log -n1 --pretty=format:'%ai') + GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE + export GIT_COMMITTER_DATE GIT_AUTHOR_DATE git checkout -b WORKTREE gitfetchinfo_perhaps_commit INDEX git add -Af .