summaryrefslogtreecommitdiff
path: root/t/t7516-commit-races.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t7516-commit-races.sh')
-rwxr-xr-xt/t7516-commit-races.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t7516-commit-races.sh b/t/t7516-commit-races.sh
index f2ce14e907..2d38a16480 100755
--- a/t/t7516-commit-races.sh
+++ b/t/t7516-commit-races.sh
@@ -10,7 +10,8 @@ test_expect_success 'race to create orphan commit' '
test_must_fail env EDITOR=./hare-editor git commit --allow-empty -m tortoise -e &&
git show -s --pretty=format:%s >subject &&
grep hare subject &&
- test -z "$(git show -s --pretty=format:%P)"
+ git show -s --pretty=format:%P >out &&
+ test_must_be_empty out
'
test_expect_success 'race to create non-orphan commit' '