Summary
When I run uv init temp --verbose, it cannot generate the .git folder and .gitignore file.
But if I explicitly specify the VCS with uv init temp --verbose --vcs git, then it does create them.
I usually run this in another environment where this issue does not occur.
Is it possible that something is causing it not to create git-related resources?
DEBUG uv 0.7.3
DEBUG No Python version file found in ancestors of working directory: /home/gbaian10/temp
DEBUG Checking for Python environment at `temp/.venv`
DEBUG Searching for default Python interpreter in managed installations or search path
DEBUG Searching for managed installations at `.local/share/uv/python`
DEBUG Found `cpython-3.10.12-linux-x86_64-gnu` at `/usr/bin/python` (first executable in the search path)
DEBUG `git rev-parse --is-inside-work-tree` failed but didn't contain `not a git repository` in stderr for `/home/gbaian10/temp`
DEBUG No Python version file found in ancestors of working directory: /home/gbaian10/temp
DEBUG Writing Python versions to `/home/gbaian10/temp/.python-version`
Initialized project `temp` at `/home/gbaian10/temp`
Platform
Ubuntu 22.04
Version
uv 0.7.3
Python version
No response
Summary
When I run
uv init temp --verbose, it cannot generate the.gitfolder and.gitignorefile.But if I explicitly specify the VCS with
uv init temp --verbose --vcs git, then it does create them.I usually run this in another environment where this issue does not occur.
Is it possible that something is causing it not to create git-related resources?
Platform
Ubuntu 22.04
Version
uv 0.7.3
Python version
No response