Skip to content

Commit

Permalink
fixup! gvfs: disable the built-in FSMonitor
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler committed Oct 5, 2021
1 parent 9f82d43 commit e4dcae6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions fsmonitor-ipc.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "cache.h"
#include "config.h"
#include "fsmonitor.h"
#include "simple-ipc.h"
#include "fsmonitor-ipc.h"
Expand All @@ -11,8 +10,6 @@

int fsmonitor_ipc__is_supported(void)
{
if (git_config_get_virtualfilesystem())
return 0;
return 1;
}

Expand Down
3 changes: 0 additions & 3 deletions fsmonitor-settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ static void lookup_fsmonitor_settings(struct repository *r)

enum fsmonitor_mode fsm_settings__get_mode(struct repository *r)
{
if (git_config_get_virtualfilesystem())
return FSMONITOR_MODE_INCOMPATIBLE;

if (!r->settings.fsmonitor)
lookup_fsmonitor_settings(r);

Expand Down
2 changes: 1 addition & 1 deletion t/t1093-virtualfilesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ test_expect_success 'folder with same prefix as file' '
test_cmp expected actual
'

test_expect_success 'virtualfilsystem hook disables built-in FSMonitor ' '
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 &&
Expand Down

0 comments on commit e4dcae6

Please sign in to comment.