]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1400-update-ref.sh
tests: remove some direct access to .git/logs
[thirdparty/git.git] / t / t1400-update-ref.sh
index ba89f4c00959112b2cfc0efaff94f3447df32357..23721322e83a7d4e56e17c9615c7269e8a847472 100755 (executable)
@@ -155,12 +155,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)" \