diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-09-20 20:44:57 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-09-20 20:44:57 +0300 |
commit | 671eaaac0caac4826d6182bd5a57c9e0a8ed7a27 (patch) | |
tree | e31f1242007969854e675a57121736fdfd55bc97 /t/t7527-builtin-fsmonitor.sh | |
parent | bd49a2998a87fe911dfa5f6574443968faa5878a (diff) | |
parent | 6a044a20480a8ef56f7ddb8142f660ca01a3391e (diff) |
Merge branch 'js/diff-cached-fsmonitor-fix'
"git diff --cached" codepath did not fill the necessary stat
information for a file when fsmonitor knows it is clean and ended
up behaving as if it is not clean, which has been corrected.
* js/diff-cached-fsmonitor-fix:
diff-lib: fix check_removed when fsmonitor is on
Diffstat (limited to 't/t7527-builtin-fsmonitor.sh')
-rwxr-xr-x | t/t7527-builtin-fsmonitor.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t7527-builtin-fsmonitor.sh b/t/t7527-builtin-fsmonitor.sh index 0c241d6c14..78503158fd 100755 --- a/t/t7527-builtin-fsmonitor.sh +++ b/t/t7527-builtin-fsmonitor.sh @@ -809,6 +809,11 @@ my_match_and_clean () { status --porcelain=v2 >actual.without && test_cmp actual.with actual.without && + git -C super --no-optional-locks diff-index --name-status HEAD >actual.with && + git -C super --no-optional-locks -c core.fsmonitor=false \ + diff-index --name-status HEAD >actual.without && + test_cmp actual.with actual.without && + git -C super/dir_1/dir_2/sub reset --hard && git -C super/dir_1/dir_2/sub clean -d -f } |