Both the escaping of the '-' and adding '--' before the filename did the
trick :-)
Thanks!
BTW, This was on Windows.
On Tue, Mar 16, 2010 at 2:05 AM, Ryan Schmidt <
subversion-20...@ryandesign.com> wrote:
>
> On Mar 15, 2010, at 16:12, Aaron Friesen wrote:
>
> > From: Itamar O [mailto:itamar...@
On Mar 15, 2010, at 16:12, Aaron Friesen wrote:
> From: Itamar O [mailto:itamar...@gmail.com]
>> I have an unversioned file named "- example.txt" (don't ask why..),
>> and when I 'svn add "- example.txt"' I get:
>> svn: invalid option character:
>> Type 'svn help' for usage.
>
> Try:
>
> s
A slash in front of a file name can be confused with a parameter. The
trick is to prefix files with a ./:
$ svn add ./-example.txt
That way, Subversion doesn't think the -example.txt are a series of
parameters to pass to the svn add command. If there's a space after
the dash and before the first
> From: Itamar O [mailto:itamar...@gmail.com]
> I might be doing something wrong here,
> but I have an unversioned file named "- example.txt" (don't ask why..),
> and when I 'svn add "- example.txt"' I get:
> svn: invalid option character:
> Type 'svn help' for usage.
Try:
svn add -- "- ex
I might be doing something wrong here,
but I have an unversioned file named "- example.txt" (don't ask why..),
and when I 'svn add "- example.txt"' I get:
svn: invalid option character:
Type 'svn help' for usage.
Seems that the add command thinks the initial "-" is an option prefix...
This als