aboutsummaryrefslogtreecommitdiff
path: root/t/t7508-status.sh
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2010-04-02 23:44:21 +0200
committerJunio C Hamano <gitster@pobox.com>2010-04-02 21:25:59 -0700
commit4bb6644d03f6932b94c24c3825e28865f493b692 (patch)
treea91894ee1aabd73cc58488ac8dee36b51dc1220d /t/t7508-status.sh
parent4c926b37c21a088163871bb8e6ccdfc4b4952e34 (diff)
downloadgit-4bb6644d03f6932b94c24c3825e28865f493b692.tar.gz
git-4bb6644d03f6932b94c24c3825e28865f493b692.tar.xz
git status: refresh the index if possible
This was already the case before commit 9e4b7ab6 (git status: not "commit --dry-run" anymore, 2009-08-15) with the difference that it died at failure. It got lost during the new implementation of "git status", which was meant to only change behaviour when invoked with arguments. Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-xt/t7508-status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 086ec3a72..c317bdef4 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -499,7 +499,7 @@ test_expect_success 'dry-run of partial commit excluding new file in index' '
cat >expect <<EOF
:100644 100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0000000000000000000000000000000000000000 M dir1/modified
EOF
-test_expect_failure 'status refreshes the index' '
+test_expect_success 'status refreshes the index' '
touch dir2/added &&
git status &&
git diff-files >output &&