diff --git a/t/t7102-reset.sh b/t/t7102-reset.sh
index 506767d2d7085724187d451a5972eaedd513ce81..e5c9f30c73d4dbfe1fff6022bddfe6a387441a9b 100755 (executable)
--- a/t/t7102-reset.sh
+++ b/t/t7102-reset.sh
git diff-index --cached --exit-code HEAD
'
+cat > expect << EOF
+file2: needs update
+EOF
+
+test_expect_success '--mixed refreshes the index' '
+ echo 123 >> file2 &&
+ git reset --mixed HEAD > output &&
+ git diff --exit-code expect output
+'
+
test_done