From d0ab058498cf3f1862de76b419abc0b67fabbd83 Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 27 Jul 2015 18:57:08 -0400 Subject: tests: remove some direct access to .git/logs Alternate refs backends might store reflogs somewhere other than .git/logs. Change most test code that directly accesses .git/logs to instead use git reflog commands. There are still a few tests which need direct access to reflogs: to check reflog permissions, to manually create reflogs from scratch, to save/restore reflogs, to check the format of raw reflog data, and to remove not just reflog contents, but the reflogs themselves. All cases which don't need direct access have been modified. Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- t/t1411-reflog-show.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t1411-reflog-show.sh') diff --git a/t/t1411-reflog-show.sh b/t/t1411-reflog-show.sh index 6f47c0dd0..d568b35b4 100755 --- a/t/t1411-reflog-show.sh +++ b/t/t1411-reflog-show.sh @@ -138,7 +138,7 @@ test_expect_success '--date magic does not override explicit @{0} syntax' ' : >expect test_expect_success 'empty reflog file' ' git branch empty && - : >.git/logs/refs/heads/empty && + git reflog expire --expire=all refs/heads/empty && git log -g empty >actual && test_cmp expect actual -- cgit v1.2.1