Skip to content

Commit

Permalink
Merge pull request #379 from dscho/disable-fsmonitor-with-gvfs
Browse files Browse the repository at this point in the history
vfs: disable the built-in FSMonitor
  • Loading branch information
dscho authored and derrickstolee committed Oct 31, 2021
2 parents 0b821fb + bc6034a commit bfbb9a4
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 'virtualfilsystem 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 bfbb9a4

Please sign in to comment.