summaryrefslogtreecommitdiff
path: root/t/t1400-update-ref.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-08-12 21:09:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-12 21:09:56 (GMT)
commit0188f32304d916ec6a2443937e36421e8da9a8fd (patch)
treeab6152cabcf1ac6c61882b7c78daff20f8aa0c2d /t/t1400-update-ref.sh
parent53860f03927fea9c46d64b556a06fffe4b46e41f (diff)
parentd0ab058498cf3f1862de76b419abc0b67fabbd83 (diff)
downloadgit-0188f32304d916ec6a2443937e36421e8da9a8fd.zip
git-0188f32304d916ec6a2443937e36421e8da9a8fd.tar.gz
git-0188f32304d916ec6a2443937e36421e8da9a8fd.tar.bz2
Merge branch 'dt/reflog-tests'
Tests that assume how reflogs are represented on the filesystem too much have been corrected. * dt/reflog-tests: tests: remove some direct access to .git/logs t/t7509: remove unnecessary manipulation of reflog
Diffstat (limited to 't/t1400-update-ref.sh')
-rwxr-xr-xt/t1400-update-ref.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh
index 9d21c19..97406fa 100755
--- a/t/t1400-update-ref.sh
+++ b/t/t1400-update-ref.sh
@@ -174,12 +174,11 @@ test_expect_success "(not) changed .git/$m" "
'
rm -f .git/$m
-: a repository with working tree always has reflog these days...
-: >.git/logs/refs/heads/master
+rm -f .git/logs/refs/heads/master
test_expect_success \
"create $m (logged by touch)" \
'GIT_COMMITTER_DATE="2005-05-26 23:30" \
- git update-ref HEAD '"$A"' -m "Initial Creation" &&
+ git update-ref --create-reflog HEAD '"$A"' -m "Initial Creation" &&
test '"$A"' = $(cat .git/'"$m"')'
test_expect_success \
"update $m (logged by touch)" \