Reputation: 21
I'm confused.
I've installed copSSH and linked it with msysgit installation (by adding path to it). And now whenever I use copSSH tools (like ls, cd) I should use the absolute paths in form like '/home', /cygdrive/d/copSSH/home.
But when I used git I should use absolute paths in a different (another) form. like '/copSSH/home', 'd:/copSSH/home'.
For me it's really strange. Have anybody clue for that and an idea how to fix it?
Thanks a lot Andrei.
P.S. I use WinXP, git version 1.7.0.2.msysgit.0, copSSH 3.1.0. Everything is installed using http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/ article (with some modifications).
Upvotes: 0
Views: 1828
Reputation: 13907
Unfortunately, cygwin and mingw have a different way of mapping windows drives and directories, so before you enter a path for anything, you need to know whether it is a cygwin or mingw binary.
What I can suggest is to remove CopSSH bin directories from your PATH (at least from git bash path), so that all shell commands available use the mingw format. The only place where you would have cygwin paths would be when you do and ssh actions this way. For example, when you clone from d:\repositories\myrepo.git
, you could use git clone ssh://user@srv/cygdrive/d/repositories/myrepo.git
(cygwin form). To work with git in, say d:\clones\myrepo
, you can use ls /d/clones/myrepo
(mingw32 form).
Also, before you attempt any git clones, you can use putty or plink to make an ssh connection, and look around. If inside the ssh connection, you can do ls /home/myrepo.git
, then git clone ssh://user@srv/home/myrepo.git
should work.
Upvotes: 1