diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index f178f56208ce84c273fd251c4420a7b6f86c3c86..b151b51a3420fdba921da16979ec4a480b61a973 100644 (file)
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
'validate git-rev-list output.' \
'diff current expected'
-test_expect_success 'partial commit that involve removal (1)' '
+test_expect_success 'partial commit that involves removal (1)' '
git rm --cached file &&
mv file elif &&
'
-test_expect_success 'partial commit that involve removal (2)' '
+test_expect_success 'partial commit that involves removal (2)' '
git commit -m "Partial: remove file" file &&
git diff-tree --name-status HEAD^ HEAD >current &&
'
+test_expect_success 'partial commit that involves removal (3)' '
+
+ git rm --cached elif &&
+ echo elif >elif &&
+ git commit -m "Partial: modify elif" elif &&
+ git diff-tree --name-status HEAD^ HEAD >current &&
+ echo "M elif" >expected &&
+ diff expected current
+
+'
+
test_done