问题描述
在 VisualSVN 服务器中,我使用提交后挂钩将文件从 Subversion 存储库中的目录移动到文件系统上的正确目录.我收到如下所示的错误.
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.
错误:
提交后挂钩失败(退出代码 1)输出:svn:无法命名为了'D:\websites\mywebsite.com\tempfile'
post-commit hook failed (exit code 1) with output: svn: Unable to make name for 'D:\websites\mywebsite.com\tempfile'
我正在使用 TortoiseSVN 提交文件.我能够在其他项目中很好地做到这一点,我在本地副本或存储库的目录结构中没有看到名为 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.
推荐答案
原来是权限问题.这就是我修复它的方式,所以希望它会帮助其他人.
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
这篇关于VisualSVN 服务器:提交后挂钩失败.SVN:无法为“D:\websites\mywebsite.com\tempfile"命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!