Subversion 提交后挂钩
我试图让 SVN 在提交时将文件复制到我的 htdocs 文件夹。这是我到目前为止在 post-commit.bat 中的内容:
"C:\subversion\bin\svn.exe" update "C:\apache\apache2.2\htdocs"
当我查看钩子创建的日志文件时,我得到以下行:
Skipped 'C:\Apache\Apache2.2\htdocs'
有谁知道为什么会发生这种情况?
无论我选择哪个目录作为目标,我都会遇到相同的错误。
我正在运行 SVN 1.6.4、Tortoise 1.6.8、Apache 2.2、WinXP SP3
我没有使用用户名和密码,因为 SVN 存储库上没有设置安全性。只有我在发展。
谢谢
I am trying to get SVN to copy files to my htdocs folder on commit. Here is what I have so far in my post-commit.bat:
"C:\subversion\bin\svn.exe" update "C:\apache\apache2.2\htdocs"
When I look at the log files created by the hook I get the following line:
Skipped 'C:\Apache\Apache2.2\htdocs'
Does anyone know why this is happening?
No matter what directory I choose as a destination, I get the same error.
I am running SVN 1.6.4, Tortoise 1.6.8, Apache 2.2, WinXP SP3
I am not using username and password because there is no security set up on the SVN repository. It's just me developing.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我看到一个不是工作副本的文件夹:
您确定
C:\apache\apache2.2\htdocs
处有工作副本吗?您首先需要检出该文件夹,然后才能更新它。你能这样做吗:
如果这对你不起作用,那么它肯定对服务器也不起作用。
I see this with a folder that isn't a working copy:
Are you sure there's a working copy at
C:\apache\apache2.2\htdocs
? You first need to checkout into that folder before you can update into it.Can you do this:
If this doesn't work for you, it certainly won't for the server.
尝试使用结帐选项(您也必须添加到存储库的链接)
Try use checkout option (you must add link to repository too)