Skip to content

Apply opam-specific git config if not full_fetch#6955

Open
sporkl wants to merge 1 commit into
ocaml:masterfrom
sporkl:conditional-git-config
Open

Apply opam-specific git config if not full_fetch#6955
sporkl wants to merge 1 commit into
ocaml:masterfrom
sporkl:conditional-git-config

Conversation

@sporkl
Copy link
Copy Markdown

@sporkl sporkl commented Jun 4, 2026

opam source --dev should not apply opam-specific git configs. This commit adds a will_full_fetch argument to VCS.init, and only applies opam-specific git configurations when this is false. Also, default to full_fetch=false to mimic prior behavior. This should resolve #6451 .

I do have some failing tests locally, but it looks like the same tests fail on master for me.

Relatively new to contributing to open source, so any feedback is appreciated! I have a fair amount of free time these days, so looking to contribute more to the OCaml ecosystem.

`opam source --dev` should not apply opam-specific `git config`s.
This commit adds a `will_full_fetch` argument to VCS.init,
and only applies opam-specific git configurations when this is false.
Also, default to full_fetch=false to mimic prior behavior.
@rjbou
Copy link
Copy Markdown
Collaborator

rjbou commented Jun 5, 2026

Thanks for this first contribution! We'll try to take a look soon. For the moment we are trying to finalise 2.6 alpha release.

@rjbou rjbou requested review from kit-ty-kate and rjbou June 5, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opam source --dev PKG sets color.ui to false

2 participants