about summary refs log tree commit diff
path: root/third_party/git/t/t1011-read-tree-sparse-checkout.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t1011-read-tree-sparse-checkout.sh')
-rwxr-xr-xthird_party/git/t/t1011-read-tree-sparse-checkout.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/git/t/t1011-read-tree-sparse-checkout.sh b/third_party/git/t/t1011-read-tree-sparse-checkout.sh
index eb44bafb59..ba71b159ba 100755
--- a/third_party/git/t/t1011-read-tree-sparse-checkout.sh
+++ b/third_party/git/t/t1011-read-tree-sparse-checkout.sh
@@ -215,6 +215,7 @@ test_expect_success 'read-tree adds to worktree, dirty case' '
 '
 
 test_expect_success 'index removal and worktree narrowing at the same time' '
+	>empty &&
 	echo init.t >.git/info/sparse-checkout &&
 	echo sub/added >>.git/info/sparse-checkout &&
 	git checkout -f top &&
@@ -222,7 +223,7 @@ test_expect_success 'index removal and worktree narrowing at the same time' '
 	git checkout removed &&
 	git ls-files sub/added >result &&
 	test ! -f sub/added &&
-	test_must_be_empty result
+	test_cmp empty result
 '
 
 test_expect_success 'read-tree --reset removes outside worktree' '