Closed
Description
Describe the bug
make tools -> repository path is not owned by current user
❯ make tools
error:
… while fetching the input 'git+file:///home/casey/projects/homelab'
error: opening Git repository '"/home/casey/projects/homelab"': repository path '/home/casey/projects/homelab' is not owned by current user
make: *** [Makefile:30: tools] Error 1
To reproduce
Steps to reproduce the behavior:
- Run
make tools
use a non-root linux user and a git latest version
Expected behavior
can run.
Logs and screenshots
❯ make tools
error:
… while fetching the input 'git+file:///home/casey/projects/homelab'
error: opening Git repository '"/home/casey/projects/homelab"': repository path '/home/casey/projects/homelab' is not owned by current user
make: *** [Makefile:30: tools] Error 1
Additional context
no
Workaround
change Makefile:
tools add:
tools:
@docker run \
...
--volume ${HOME}/.gitconfig:/root/.gitconfig \
and ${HOME}/.gitconfig
like this:
[user]
name = <your name>
email = <your email>
[safe]
directory = *