Skip to content

Conversation

@fabpot
Copy link
Contributor

@fabpot fabpot commented Mar 2, 2024

No description provided.

@phenaproxima
Copy link

Just wanted to report that I checked out this branch and was able to build the image successfully (docker build .) using Colima 0.7.5 on macOS Sonoma 14.7.

@phenaproxima
Copy link

However...when I tried to run this command:

docker run --rm -v $PWD:/data phenaproxima/splitsh:test --prefix=project_template/

(phenaproxima/splitsh:test is just my local tag name for the built image), I got this:

config value 'safe.directory' was not found

Did I do something wrong?

@phenaproxima
Copy link

I got past the safe.directory error by altering the Dockerfile to copy a gitconfig file into /etc:

safe.directory="*"

But then I ran into this: repository path '/data/' is not owned by current user when I ran docker run --rm -v $PWD:/data IMAGE_ID --prefix=project_template/

@phenaproxima
Copy link

phenaproxima commented Oct 22, 2024

Got this to work by using the hack in libgit2/libgit2#6663 (comment).

docker run --rm -v $PWD:/data -e SUDO_UID=$(id -u) 7343ebd3ff68 --prefix=project_template/
16 commits created, 403 commits traversed, in 446ms
00167c4d8f10aae004462f4ad3dd697e0c6e5d69

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.

3 participants