-
-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied on config.lock
when cloning in Docker under MacOS
#1566
Comments
config.lock
when clonning in Docker under MacOSconfig.lock
when cloning in Docker under MacOS
I am not sure this issue is related to GitPython, as having it here implies GitPython should work in an environment where file permissions are not working as expected. Thus I am closing the issue as it's not actionable. However, maybe also thanks to the scripts to help reproduce it, one can experiment and see if the situation is common enough to try implement (and contribute) workarounds. Please feel free to keep commenting here and once the context changed the issue can be reopened. |
I've got a simple example to reproduce the issue on MacOS
Tested under: |
I reduced the example to the simplest one, and it seems the issue is |
Thanks for your help! From the description above it seems clear that Could I interest in contributing this fix? Thanks for your consideration. |
Yup, definitely! I will make a PR soon. |
Definitely we can switch from |
@muthurajr @mmajchrzycki Just created a PR. Found that removing the "0" in the
|
…pen()" method to work around docker virtiofs issue (backport to 1.0.2)
Just realised that you are the maintainer @Byron - do you know what the rationale is behind setting |
I think a relevant part of the answer would be my reply in your PR. Regarding |
…n-open-method-to-create-lockfile-to-workaround-docker-virtiofs-permission-issue #1566 Creating a lock now uses python built-in "open()" method to work arou…
Hi,
I found a bug related to the
FileLock
system. What I'm doing:clone_from
.docker run --rm --interactive -v $PWD:/work --user $(id -u):$(id -g) /bin/bash
I'm getting this error:
The
config.lock
file as listed under Ubuntu:Also listed under MacOS:
I will provide a minimum set-up (docker file and python script) to reproduce it later.
The text was updated successfully, but these errors were encountered: