Skip to content

Disable git's fsmonitor on repositories managed by opam - #7090

Draft
kit-ty-kate wants to merge 1 commit into
ocaml:masterfrom
kit-ty-kate:disable-git-fsmonitor
Draft

Disable git's fsmonitor on repositories managed by opam#7090
kit-ty-kate wants to merge 1 commit into
ocaml:masterfrom
kit-ty-kate:disable-git-fsmonitor

Conversation

@kit-ty-kate

Copy link
Copy Markdown
Member

Fixes #7054
As mentioned in this ticket this is barely worth doing as one would need to set an undocumented environment variable to trigger the issue but i guess it's best to make sure it never happens and we already have the code for it anyway.

Comment thread src/repository/opamGit.ml
let git_config = [
"gc.autoDetach", "false";
"maintenance.autoDetach", "false";
"core.fsmonitor", "false";

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:

  • add a comment here telling people to think about adding git config --local variable
  • add the git config --local variable
  • idea from @rjbou: we could also simply map the list to create these git config --local instead of duplicating them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repository set-url fails when Git fsmonitor leaves a socket under .git

1 participant