Subversion (svn.exe) prepending current directory to target path when using Windows path format.

Larry Hall (Cygwin)
Thu Jan 22 21:27:00 GMT 2015

On 01/22/2015 01:36 PM, Hans Deragon wrote:
> Greetings,
> When I run Cygwin subversion command (svn) with a Windows formatted path
> (C:\dir1\dir2\...), for some reason it prepends the current directory
> (${PWD}) in Cygwin format (/cygdrive/c/...) to the target path in Windows
> format, causing the command to fail.  Using a target path expressed in
> Cygwin format works fine.
> Windows path (failure):
>    svn info 'C:\Users\user1\companyprojects\project1\trunk\pom.xml'
>    svn: E155007:
> '/cygdrive/c/temp/C:\Users\user1\companyprojects\project1\trunk\pom.xml' is
> not a working copy
>    Here, /cygdrive/c/temp/ is the current path.  I tested under other paths
> and the same problem occurs.
> Cygwin path (works):
>    svn info /cygdrive/c/Users/user1/companyprojects/project1/trunk/pom.xml
>    Path: /cygdrive/c/Users/user1/companyprojects/project1/trunk/pom.xml
>    Name: pom.xml
>    Working Copy Root Path:
> /cygdrive/c/Users/user1/companyprojects/project1/trunk
>    [...deleted extra output...]
> I could provide the output of strace if anybody would look at it.
> For those asking why I do not provide a Cygwin path (/cygdrive/c/..) in the
> first place, it is because I would like my Java IDE (Intellij IDEA) to make
> use of the same svn.exe executable that I use under Cygwin (thus having the
> best compatibility; its the same tool running).  Obviously, my IDE provides
> paths in Windows format to svn.exe; this is how I found the bug.

If you can use 'cygpath' to convert the incoming Windows path to POSIX form,
that would solve the problem for you.



A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list