blakeNaccarato / copier-python

Copier template for Python projects
https://blakenaccarato.github.io/copier-python/
MIT License
4 stars 0 forks source link

Figure out issue working with Git submodules directly and `core.bare` thing #448

Closed blakeNaccarato closed 1 month ago

blakeNaccarato commented 1 month ago

Please check that this bug hasn't been reported before

Please confirm that this bug affects the latest version

Please indicate which operating system(s) you are using

Expected behavior

Should be able to commit in submodule without issue.

Current behaviour

When we try, issue with core.bare and core.worktree "do not make sense" and submodule issues.

Steps to reproduce

Try to commit in a submodule.

Possible solution

No response

blakeNaccarato commented 1 month ago

See https://github.com/softboiler/boilercore/commit/8a347fe2de32a6bdeca9f86c1868c4fee80e89ef, where the issue was a fork with pinned commit in the --override part of a uv call, when pyproject.toml specifies a minimum version from the official PyPI distribution of that package.

Switching that pinned commit in a fork to a submodule bypasses the issue. Should repro this minimally and raise an issue over at uv, failing to clone the fork while working in a submodule sets core.bare to true in the submodule, hiding the real issue.