Question

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?

Was it helpful?

Solution

Just error message formatting. See triplee's comment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top