invalid option character

312 views
Skip to first unread message

Tam

unread,
Dec 1, 2011, 3:12:33 PM12/1/11
to us...@subversion.apache.org
Hi-

I have SVN Visual Server and have created a post-commit hook:

"C:\Program Files\VisualSVN Server\bin\svn.exe" update --C:\webcontent
\xx\xx -username xxx--password xxx

The hook never seemed to execute, so I tried running it on the command
line, but I get this error:

svn.exe: invalid option character: s

I've checked the svn help and am not sure where this option "s" is
coming from...

Running on WindowsSBS 2003

Any help is appreciated...

T.

Ulrich Eckhardt

unread,
Dec 5, 2011, 4:04:12 AM12/5/11
to us...@subversion.apache.org
Am 01.12.2011 21:12, schrieb Tam:
> I have SVN Visual Server and have created a post-commit hook:
>
> "C:\Program Files\VisualSVN Server\bin\svn.exe" update --C:\webcontent
> \xx\xx -username xxx--password xxx
>
> The hook never seemed to execute, so I tried running it on the command
> line, but I get this error:
>
> svn.exe: invalid option character: s

Try removing stuff until it works in order to find out what exactly
caused it to go wrong. I guess that the "s" option given to "-u" as
parameter, and that is not understood. Of course you meant "--username"
and not "-username". Also you will probably have SVN complain about an
unknown "--C:", the path with the working copy isn't supposed to follow
two dashes, similarly to "update".

Good luck!

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland
Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden.
E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich.
**************************************************************************************

Andy Levy

unread,
Dec 5, 2011, 8:31:49 AM12/5/11
to Tam, us...@subversion.apache.org
On Thu, Dec 1, 2011 at 15:12, Tam <tamak...@gmail.com> wrote:
> Hi-
>
> I have SVN Visual Server and have created a post-commit hook:
>
> "C:\Program Files\VisualSVN Server\bin\svn.exe" update --C:\webcontent
> \xx\xx -username xxx--password xxx
>
> The hook never seemed to execute, so I tried running it on the command
> line, but I get this error:
>
> svn.exe: invalid option character: s
>
> I've checked the svn help and am not sure where this option "s" is
> coming from...

You've specified -username. It needs to be --username (note two
dashes, not one). Typically a single dash indicates a single-character
option, so it's reading "-u" and then not expecting the "s".

Reply all
Reply to author
Forward
0 new messages