chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test suite: tartree-edit: gitfetchinfo: Specify commit timestamps
[dgit.git]
/
tests
/
tartree-edit
diff --git
a/tests/tartree-edit
b/tests/tartree-edit
index 76e51b67169d7b84e84eb6edda573860f7f3d9b0..1aeab3d41dc7f8e2b58051667e0dc37c114141de 100755
(executable)
--- 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 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 .
git checkout -b WORKTREE
gitfetchinfo_perhaps_commit INDEX
git add -Af .