开发者

Subversion commit fails

开发者 https://www.devze.com 2023-03-08 19:24 出处:网络
I am running ubuntu 10.10, and have rabbitvcs & svn installed, I have created a repository & checked it out fine开发者_JAVA百科 (local machine, using file://), but when i commit i get the erro

I am running ubuntu 10.10, and have rabbitvcs & svn installed, I have created a repository & checked it out fine开发者_JAVA百科 (local machine, using file://), but when i commit i get the error : "can't open /var/svn/repos/repository/db/txn-current-lock : Permission denied"

If i run it on the command line as root (sudo) all is well. I have looked in the conf & db files and applied all the potentially useful settings i can find on the internet, but i still cannot commit as myself!

Any ideas ??

Ta, NWS.


Change the owner of the repository to your user:

$ sudo chown -R [username] /var/svn/repos/repository

This should be enough if you are the only person using the repository, and it's only being used locally. If you need permissions for more local users, consider creating a separate group and granting this group write access to the repository. Finally, if you want to allow remote access to the repository, I recommend not using the local file protocol at all (even locally).


If you have never been able to commit back to the repo I'd guess you really do have a permissions issue (the "Permission denied" thing ). Does your user have permission to the subversion directory for this repository? If you're using a local repository with "file://" you probably want the repository somewhere in your users home directory.

If you have been able to commit to the same place previously I'd recommend checking out a new clean version, make your changes there, and commit from the new check out.

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号