l10n: sv.po: Update Swedish translation (3288t0f0u)
[gitweb.git] / t / t7508-status.sh
index a3d760e63ad5c8387c3b0c0a30ae72918a2736ce..50052e28727dab74037a115003b6083256d7f344 100755 (executable)
@@ -1671,4 +1671,14 @@ test_expect_success '"Initial commit" should not be noted in commit template' '
        test_i18ngrep ! "Initial commit" output
 '
 
+test_expect_success '--no-optional-locks prevents index update' '
+       test-chmtime =1234567890 .git/index &&
+       git --no-optional-locks status &&
+       test-chmtime -v +0 .git/index >out &&
+       grep ^1234567890 out &&
+       git status &&
+       test-chmtime -v +0 .git/index >out &&
+       ! grep ^1234567890 out
+'
+
 test_done