fix(dev-setup): derive the repository from the script, rename PYTHON to KAMINO_PYTHON
The script took its repository from the caller's working directory, so running it from another repository could create or remove that repository's .venv. It now resolves its own location (symlinks included) and uses git -C for every call. The interpreter variable is KAMINO_PYTHON, and the usage comment no longer claims it always selects the venv interpreter. A core.hooksPath that resolves to the repository's own hooks directory is lifted for the install and restored; any other value is still rejected. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
4ed03b508a
commit
19faa49a4c
2 files changed
+36
-12
No files matched your search
@@ -1,4 +1,4 @@
|
||||
trivial:
|
||||
- >-
|
||||
scripts/dev-setup.sh checks for Python 3.11 or newer (PYTHON selects one), rebuilds an older
|
||||
scripts/dev-setup.sh checks for Python 3.11 or newer (KAMINO_PYTHON selects one), derives the repository from its own location, rebuilds an older
|
||||
virtualenv, and fails early when core.hooksPath is set or the hooks are missing.
|
||||
Reference in new issue
Block a user