Thread (3 messages) 3 messages, 1 author, 2022-02-09
DORMANTno replies

[PATCH 1/2] t1410: use test-tool ref-store to inspect reflogs

From: Han-Wen Nienhuys via GitGitGadget <hidden>
Date: 2022-02-09 12:05:14
Subsystem: the rest · Maintainer: Linus Torvalds

From: Han-Wen Nienhuys <redacted>

This makes the test compatible with reftable (it doesn't pass yet for
other reasons, unfortunately)

Signed-off-by: Han-Wen Nienhuys <redacted>
---
 t/t1410-reflog.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index d7ddf7612d4..36f6693d9d3 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -418,7 +418,8 @@ test_expect_success 'expire with multiple worktrees' '
 		test_commit -C link-wt foobar &&
 		test_tick &&
 		git reflog expire --verbose --all --expire=$test_tick &&
-		test_must_be_empty .git/worktrees/link-wt/logs/HEAD
+		test-tool ref-store worktree:link-wt for-each-reflog-ent HEAD >actual &&
+		test_must_be_empty actual
 	)
 '
 
-- 
gitgitgadget
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help