Skip to content

Commit a570963

Browse files
hanwengitster
authored andcommitted
t2017: mark --orphan/logAllRefUpdates=false test as REFFILES
In reftable, there is no notion of a per-ref 'existence' of a reflog. Each reflog entry has its own key, so it is not possible to distinguish between {reflog doesn't exist,reflog exists but is empty}. This makes the logic in log_ref_setup() (file refs/files-backend.c), which depends on the existence of the reflog file infeasible. Signed-off-by: Han-Wen Nienhuys <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 41e2e17 commit a570963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2017-checkout-orphan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test_expect_success '--orphan makes reflog by default' '
7676
git rev-parse --verify delta@{0}
7777
'
7878

79-
test_expect_success '--orphan does not make reflog when core.logAllRefUpdates = false' '
79+
test_expect_success REFFILES '--orphan does not make reflog when core.logAllRefUpdates = false' '
8080
git checkout main &&
8181
git config core.logAllRefUpdates false &&
8282
git checkout --orphan epsilon &&

0 commit comments

Comments
 (0)