All:

I'm running VisualSVN Server on a Window machine, and I'm struggling
to get it to recognize my Perl-based pre-commit hooks. I understand
that the VisualSVN Server hooks should be either a .exe or .cmd file,
and that it's not easy to execute Perl directly from them. I figured
this wouldn't be a big deal since I could just set up a batch file to
execute a Perl script.

I've renamed the suffix of the VisualSVN Server pre-commit hook
to .cmd (pre-commit.cmd) and it contains this:

"E:\repos\mod\hooks\custom-pre-commit.bat %1 %2

and the batch files at that location contains this:

REPOS="$1"
REV="$2"
"C:\Perl\bin\perl" "E:\repos\mod\hooks\custom-pre-commit.pl" "$REPOS"
"$REV"

and the Perl at that location contains this:

print "made it!";

but when I perform a commit I get the following errors:

Commit failed (Details below)
Commit block be pre-commit hook (exit code 1) with output:
The filename, directory name, or volume label syntax is incorrect.

IS this just a .cmd/.bat file syntax thing, or am I missing something
else here?

Reply via email to