summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-23 21:09:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-23 21:09:30 (GMT)
commit7f7d1ad3e0b12a0c826d4a0ffbedce28d9be86c6 (patch)
tree820769930ccccb55e404f98f454fa5b2fb59171a /t
parentd674bf5570b2eed9779a0b8879ae70219f27a2f9 (diff)
parent57be9c6deeb1be7c3ce6270df52473eddc09a86c (diff)
downloadgit-7f7d1ad3e0b12a0c826d4a0ffbedce28d9be86c6.zip
git-7f7d1ad3e0b12a0c826d4a0ffbedce28d9be86c6.tar.gz
git-7f7d1ad3e0b12a0c826d4a0ffbedce28d9be86c6.tar.bz2
Merge branch 'ab/reflog-prep-fix'
Regression fix. * ab/reflog-prep-fix: reflog: don't be noisy on empty reflogs
Diffstat (limited to 't')
-rwxr-xr-xt/t1410-reflog.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index 68f69bb..ea8e6ac 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -423,4 +423,13 @@ test_expect_success 'expire with multiple worktrees' '
)
'
+test_expect_success REFFILES 'empty reflog' '
+ test_when_finished "rm -rf empty" &&
+ git init empty &&
+ test_commit -C empty A &&
+ >empty/.git/logs/refs/heads/foo &&
+ git -C empty reflog expire --all 2>err &&
+ test_must_be_empty err
+'
+
test_done