From 312eeea6721530096c252d25f325762e96880cdb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 2 Jul 2016 11:24:28 +0100 Subject: 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. --- tests/tartree-edit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tartree-edit b/tests/tartree-edit index 76e51b6..1aeab3d 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 . -- cgit v1.2.3