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 Jun 3, 2024
1 parent 21546cc commit da51b7f
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 da51b7f

Please sign in to comment.