2

我似乎不再能够在我的存储库中提交文件删除。

Error Commit failed (details follow):
Error Commit blocked by pre-commit hook (exit code 1) with output:
Error Internal error: Non-modifying file change.

我觉得很奇怪,这在网上找不到。

任何想法?

我正在使用乌龟 1.7.7 和 SVN 1.7.6

我的预提交.bat

PATH C:\msys\bin
PATH %PATH%;C:\Program Files\csvn\Python25
PATH %PATH%;C:\Program Files\csvn\bin
set PYTHON=C:\Program Files\csvn\Python25
set PYTHONPATH=C:\Program Files\csvn\lib\svn-python
bash %1/hooks/pre-commit %1 %2

和我的预提交钩子

REPOS="$1"
TXN="$2"

: ${PATH:=/usr/local/bin:/usr/bin}
export PATH


svnlook log -t "$TXN" "$REPOS" | \
   grep "[a-zA-Z0-9]" > /dev/null || \
   { echo >&2 "An empty commit message is not allowed."; exit 1; }


python $REPOS/hooks/svnperms.py -r "$REPOS" -t "$TXN" || exit 1

# Validate the changes made by this transaction.
python $REPOS/hooks/pre-commit-check.py "$REPOS" "$TXN" || exit 1

# All checks passed, so allow the commit.
exit 0

提前致谢

4

0 回答 0