Reputation: 31751
user2 wants to bzr push changes to a directory /home/user1/project/dev
. user2 has group +rwx permissions on this directory, but not in my home directory /home/user1/
This results in the error:
bzr: ERROR: Permission denied: "h2i9usf1l6ieofpuul87.pack": [Errno 13] Permission denied: '/home/user1/.bzr/repository/upload/h2i9usf1l6ieofpuul87.pack'
It is not clear to me why user2 needs permission to my home /home/user1/.bzr/
when /home/user1/project/dev
is branch is from /home/usr1/project/trunk
.
I am relatively new to using VCS and am not sure how I got in this predicament. Is there a way to break the dependency on the /home/user1/.bzr
, or to create a branch from /home/user1/project/trunk/
that does not have this dependency?
Upvotes: 0
Views: 1308
Reputation: 31751
(provided by user3)
This might be fixed using following commands (group name is project_dev
):
chgrp -R project_dev /home/user1/project/dev
find /home/user1/project/dev -type d -exec chmod g+s {} \;
project_dev
.Upvotes: 1
Reputation: 21473
It seems you have shared repository in /home/user1/
and branch at /home/user1/project/dev
is using that repository. Therefore it needs access to repository to store new revisions.
How to check: run command bzr info
and check its output for the definition of that branch. If you will see "Repository tree" or "Repository branch" then that branch definitely using a shared repository. You should see the path to the repository in the output of bzr info
.
How to fix: instruct bzr to stop using shared repository by executing command bzr reconfigure --standalone
in the branch at /home/user1/project/dev
. Check output of bzr info
again. Now it should be named "Standalone tree" or "Standalone branch". After that user2 should be able to successfully push to that branch.
Upvotes: 4