문제

I'm trying to create a post-commit hook to update trac after a subversion commit.

The hook looks like this:

#!/bin/sh
/usr/bin/trac-admin /var/trac/trac-env/ changeset added "$1" "$2"
exit 0

(Code is from http://trac.edgewall.org/wiki/TracRepositoryAdmin)

However, when I execute the script manually, I get the following error:

./post-commit /var/svn/myrepos 100
*** Unknown syntax: changeset 'added' '/var/svn/myrepos' '100'

My question: Where are the single quotes coming from?

도움이 되었습니까?

해결책

Just error message formatting. See triplee's comment.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top