Merge branch 'jk/delta-islands-progress-fix'
[gitweb.git] / t / t7519-status-fsmonitor.sh
index 3e0a61db2348577ed5c6cef4f844c2a26548de1d..81a375fa0ff9845cb755dd77df9921d2b71c764b 100755 (executable)
@@ -346,4 +346,12 @@ test_expect_success UNTRACKED_CACHE 'ignore .git changes when invalidating UNTR'
        test_cmp before after
 '
 
+test_expect_success 'discard_index() also discards fsmonitor info' '
+       test_config core.fsmonitor "$TEST_DIRECTORY/t7519/fsmonitor-all" &&
+       test_might_fail git update-index --refresh &&
+       test-tool read-cache --print-and-refresh=tracked 2 >actual &&
+       printf "tracked is%s up to date\n" "" " not" >expect &&
+       test_cmp expect actual
+'
+
 test_done