Skip to content

Commit bd95866

Browse files
committed
gvfs: verify that the built-in FSMonitor is disabled
When using a virtual file system layer, the FSMonitor does not make sense. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent caddbc7 commit bd95866

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t1093-virtualfilesystem.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,15 @@ test_expect_success 'folder with same prefix as file' '
368368
test_cmp expected actual
369369
'
370370

371+
test_expect_success MINGW,FSMONITOR_DAEMON 'virtualfilesystem hook disables built-in FSMonitor' '
372+
clean_repo &&
373+
test_config core.usebuiltinfsmonitor true &&
374+
write_script .git/hooks/virtualfilesystem <<-\EOF &&
375+
printf "dir1/\0"
376+
EOF
377+
git config core.virtualfilesystem .git/hooks/virtualfilesystem &&
378+
git status &&
379+
test_must_fail git fsmonitor--daemon status
380+
'
381+
371382
test_done

0 commit comments

Comments
 (0)