summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-02 11:24:28 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-02 11:24:28 +0100
commit312eeea6721530096c252d25f325762e96880cdb (patch)
tree4ae2d859af787c0b9e725c921b5d0e7affdbfc1e
parentf0bea048243bf307dae2eb11e058be96b61a62e4 (diff)
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.
-rwxr-xr-xtests/tartree-edit3
1 files changed, 3 insertions, 0 deletions
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 .