Am 16.03.19 um 10:49 schrieb Johannes Schindelin via GitGitGadget:
> diff --git a/t/t7519-status-fsmonitor.sh b/t/t7519-status-fsmonitor.sh
> index 3e0a61db23..918bc323ab 100755
> --- a/t/t7519-status-fsmonitor.sh
> +++ b/t/t7519-status-fsmonitor.sh
> @@ -346,4 +346,14 @@ test_expect_success UNTRACKED_CACHE 'ignore .git changes
> when invalidating UNTR'
> test_cmp before after
> '
>
> +test_expect_failure 'discard_index() also discards fsmonitor info' '
> + test_when_finished \
> + "git config core.monitor .git/hooks/fsmonitor-test" &&
Did you mean
"git config core.fsmonitor ...
?
> + test_config core.fsmonitor "$TEST_DIRECTORY/t7519/fsmonitor-all" &&
And then, does this not unset core.fsmonitor after the test anyway?
> + 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
-- Hannes