Skip to content

Commit

Permalink
gvfs: verify that the built-in FSMonitor is disabled
Browse files Browse the repository at this point in the history
When using a virtual file system layer, the FSMonitor does not make
sense.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 16, 2023
1 parent 630f40c commit 17284f2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t1093-virtualfilesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,15 @@ test_expect_success 'folder with same prefix as file' '
test_cmp expected actual
'

test_expect_success MINGW,FSMONITOR_DAEMON 'virtualfilesystem hook disables built-in FSMonitor' '
clean_repo &&
test_config core.usebuiltinfsmonitor true &&
write_script .git/hooks/virtualfilesystem <<-\EOF &&
printf "dir1/\0"
EOF
git config core.virtualfilesystem .git/hooks/virtualfilesystem &&
git status &&
test_must_fail git fsmonitor--daemon status
'

test_done

0 comments on commit 17284f2

Please sign in to comment.