about summary refs log tree commit diff
path: root/third_party/git/t/t2404-worktree-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t2404-worktree-config.sh')
-rwxr-xr-xthird_party/git/t/t2404-worktree-config.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/git/t/t2404-worktree-config.sh b/third_party/git/t/t2404-worktree-config.sh
index 286121d8decb..9536d1091954 100755
--- a/third_party/git/t/t2404-worktree-config.sh
+++ b/third_party/git/t/t2404-worktree-config.sh
@@ -23,8 +23,10 @@ test_expect_success 'config --worktree without extension' '
 '
 
 test_expect_success 'enable worktreeConfig extension' '
+	git config core.repositoryformatversion 1 &&
 	git config extensions.worktreeConfig true &&
-	test_cmp_config true extensions.worktreeConfig
+	test_cmp_config true extensions.worktreeConfig &&
+	test_cmp_config 1 core.repositoryformatversion
 '
 
 test_expect_success 'config is shared as before' '