Disable precommand hooks during configuration loading when mounting by tyrielv · Pull Request #1835 · microsoft/VFSForGit (original) (raw)

If something is wrong with the precommand hooks configuration (such as if GVFS was previously installed at a different directory, and the configuration still points to the old directory) then GVFS mount fails early, before it has a chance to fix the hooks configuration, because the hook runs and fails when looking up the required configuration.

This PR disables the precommand hook when loading the configuration required to fix the hooks configuration on mount.