VisualSVN Server: post-commit hook failed. SVN: Unable to make name for 'D:\websites\mywebsite.com\tempfile

人走茶凉 提交于 2019-12-12 09:38:41

问题


In VisualSVN Server, I am using a post-commit hook to move files from a directory in the Subversion repository to the proper directory on the file system. I am getting the error shown below.

Error:

post-commit hook failed (exit code 1) with output: svn: Unable to make name for 'D:\websites\mywebsite.com\tempfile'

I am using TortoiseSVN to commit the files. I am able to do this just fine with other projects, I don't see a file called tempfile in the directory structure of my local copy or repository, tried clean up and update commands with no success. Any ideas? Thanks.


回答1:


Turns out it was a permissions issue. This is how I fixed it, so hopefully it will help others.

  • Right-click the folder and select Properties
  • Select the Security tab
  • Add Network Service
  • Check the boxes to allow Modify, Read & Execute, List Folder Contents, Read, Write permissions



回答2:


I had this same error, but from RubyMine (problem also could probably happen in Intellij IDEA). The solution to me was to start RubyMine as administrator (right click on the icon and choose "Run as Administrator"). Problem went away.



来源:https://stackoverflow.com/questions/5572222/visualsvn-server-post-commit-hook-failed-svn-unable-to-make-name-for-d-webs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!