post-commit中svn update更新无效

手动执行update可以更新,post-commit执行无效,也不会报错,原来就是编码问题,提交文件中有中文命名,钩子脚本执行update的时候会失败,在脚本中执行update之前加上

export LANG=en_US.UTF-8

就可以了

猜你喜欢

转载自blog.csdn.net/benben0503/article/details/84136757