-
Notifications
You must be signed in to change notification settings - Fork 144
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
error: insufficient permission for adding an object to repository database ./objects #1
Comments
Hi fraksken,
I'll update the code soon for fix this problem, with SGID bit (g+s). This way when you upload a new repo, files created in the directory repos belong to the group of which the directory repos is a member, i.e. those files are members of the same group as the directory repos and not the user’s group. Thank you very much for finding the problem. |
Hey jkarlosb, Thank you very much |
Hey jkarlosb, |
Hi fraksken! Sorry for the delay. I was very busy in my job this week. I'm really glad that it worked for you. And of course! I'll write a how-to about creating new repos with git soon, needless github, gitlab, etc., great idea. Thanks to you! Any suggestions or comments are welcome for enhanced this project. |
I updated readme.md file with a how-to about create a new Git repo from CLI, without using any GUI. It's very quick as you can check.
|
Thank you so much. This will be very helpful! |
when attempting to push changes to upstream I am faced with the following:
git commit -m "init" [master (root-commit) ec6447c] init 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test $ git push Counting objects: 3, done. Writing objects: 100% (3/3), 212 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: error: insufficient permission for adding an object to repository database ./objects remote: fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To git@gitserver:/git-server/repos/runscripts ! [remote rejected] master -> master (unpacker error) error: failed to push some refs to 'git@gitserver:/git-server/repos/runscripts'
I have changed the ownership of the mounted /git-server to the UID of the git user in the container.
Any way to solve this?
The text was updated successfully, but these errors were encountered: