"ssh urs@ra git-upload-pack" does work and that's because I added it
to my system PATH variable. I actually did do the "Modify my PATH"
during GIT installation but I had to manually enter the "my\path\to\Git
\libexec\git-core" because the GIT installation does not do that for
you.
My issue is not that git-upload-pack is not recognized, the issue is
that git-upload-pack is that it's being executed in CMD which can not
translate unix style paths into windows style paths. Therefore....
"ssh urs@ra git-upload-pack c:\path\to\my\bare\repo" works but "ssh
urs@ra git-upload-pack 'c/path/to/my/bare/repo'" the latter being what
GIT is executing once it connects to the the SSH Server.
I am able to change what executable the SSH server runs the GIT
commands in when it connects, therefore what I did was made it run
SH.exe instead of CMD.exe, however this leads to other issues. I
won't go into that since I've already posted this issue in a separate
posting more recently titled "How does sh.exe or bash.exe find GIT
commands (git-upload-pack)." Please respond to that posting if you
feel you can help.
As for trying stuff like "url = u...@r.a:d:/testgit" it doesn't work
as far as I know. I've tried several different ways but it seems that
the url must have unix style paths.
Essentially, I think using cmd.exe to execute git commands remotely is
not going to work because it cannot accept unix style paths and git
remote cannot use windows style paths. That's why I've been going
down using sh.exe instead but as I said this has other issues, and
that is why I posted the new discussion.
Thanks,
Asaf
On Jul 15, 2:36 pm, Johannes Sixt <
j...@kdbg.org> wrote:
> On Dienstag, 14. Juli 2009, LocusAsaf wrote:
>
> > running an SSH server (Bitvise WinSSHD) on my remote machine and it
> > seems to function properly under all normal circumstances. If I open
> > a GIT-bash session and 'ssh user@remoteaddress' I it connects me to my
> > server specified default directory with GIT-bash running on the other
> > end (also doing stuff like 'ssh usr@ra echo test' works).
>
> But 'ssh usr@ra git-upload-pack' does not, right? Make sure your remote end
> (ssh server) sets the PATH correctly. When you installed msysgit, it offered
> you 3 options how you want to invoke git. One of the options is to modify
> PATH permanetly. Perhaps you did not choose that option, but you should have.
>
> > Maybe there is some work-around that will allow me to specify the
> > remote address as such so that it will avoid the issue all together?
> > (my .git/config looks as such: "url = ssh://...@r.a/d/testgit
> > fetch = +refs/heads/*:refs/remotes/remoterepo/*")
>
> Make that
>
> url = u...@r.a:d:/testgit