解决SVN:post-commit hook failed (exit code 127) with output:
2023-09-11 14:19:17 时间
前言:
在另一篇文章中,有SVN搭建以及提交代码自动更新到项目目录的解决方案,文章链接如下:
https://blog.csdn.net/qq_32845825/article/details/97274962
问题:
在提交代码之后,代码有更新到项目目录中,但是svn提示如下错误:
解决方案:
(1)在网上看了很多方案,类似于 在 hooks文件的 post-commit 文件中增加 || exit1 exit0;这种方案试过之后并没有解决问题;
(2)最终解决方案,找到post-commit 文件的第52行,并把相应内容注释掉,问题得到了解决。
(3)其次,确保 post-commit 文件的权限是755,post-commit 文件中内容也要正确。
#!/bin/sh
export LANG=zh_CN.UTF-8
svn co svn://XXX.XX.XX.XX/ceshi /www/ceshi
svn update /www/ceshi --username xiaozhe --password xiaozhe
总结:
这个问题遇到过多次,以记录下来提醒自己,也希望能给遇到这种问题的伙伴提供帮助。
相关文章
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- openEuler 使用密钥登录SSH以及遇到的奇怪问题(一直提示Failed publickey for root,结果最后重启好了)
- docker端口映射或启动容器时报错 driver failed programming external connectivity on endpoint quirky_allen
- Docker服务启动报错:Job for docker.service failed because the control process exited with error code
- k8s Failed to create pod sandbox: open /run/systemd/resolve/resolv.conf: no such file or directory
- 【node-sass】 Module build failed: Error: ENOENT: no such file or directory, scandir 'C:UserslizhaohongDesktoptestwebpacknode_modules.4.7.2@node-sassvendor'
- dockerd -D启动docker服务时报错”Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o docker0 -m conntrack iptables: No chain/target/match by that name”
- 报错:Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
- 使用vue-cli3创建项目的时候出错,ERROR command failed: npm install --loglevel error --registry
- ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
- VUE-015-解决 vue install 引发的 failed Error: not found: python2 问题
- Maven-008-Nexus 私服部署发布报错 Failed to deploy artifacts: Failed to transfer file: ... Return code is: 4XX, ReasonPhrase: ... 解决方案
- angularjs 1 Failed to read the 'selectionStart' property from 'HTMLInputElement':
- OPatch failed with error code 73(OracleHomeInventory gets null oracleHomeInfo)
- flutter pub get错误pub get failed和Downloading CanvasKit问题
- java.lang.Exception: Socket bind failed
- ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
- 报错 - Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1
- 合并数据失败 consolidation failed error code 999999
- IIS OCIEnvCreate failed with return code -1
- 解决zun docker vif_type(binding_failed) is not supported.A binding script for this type can‘t be found
- Error creating bean with name ‘billRestService‘: Injection of resource dependencies failed
- 14. 成功解决:ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error code 1,net_error -103