You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tam <ta...@gmail.com> on 2011/12/01 21:12:33 UTC

invalid option character

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.

Re: invalid option character

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
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.
**************************************************************************************


Re: invalid option character

Posted by Andy Levy <an...@gmail.com>.
On Thu, Dec 1, 2011 at 15:12, Tam <ta...@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".