[git-users] project cloning with url - colon not discarded from host-name

2011-09-13 Thread tombert
Trying to clone from a project with url:
name@host:path

Real-world example:
tom@myserver:/cmdata/git/myproject

fails with an error could not resolve hostname myserver:: no address
associated with name

Take special attention on the two colons ::
because when I try to clone from (removed the colon after the server)
tom@myserver/cmdata/git/myproject

it works.

On the other hand using tortoiseGit it definitely shows up the colon
after the server name.

So for me it looks like the user-server-path spliting of the url is
performed on the wrong separators ...

thx

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] project cloning with url - colon not discarded from host-name

2011-09-13 Thread Konstantin Khomoutov
On Tue, 13 Sep 2011 01:41:30 -0700 (PDT)
tombert tomb...@live.at wrote:

 Trying to clone from a project with url:
 name@host:path
 
 Real-world example:
 tom@myserver:/cmdata/git/myproject
 
 fails with an error could not resolve hostname myserver:: no address
 associated with name
 
 Take special attention on the two colons ::
 because when I try to clone from (removed the colon after the server)
 tom@myserver/cmdata/git/myproject
 
 it works.
 
 On the other hand using tortoiseGit it definitely shows up the colon
 after the server name.
 
 So for me it looks like the user-server-path spliting of the url is
 performed on the wrong separators ...

Two points:
 * According to the GIT URLS section of the git-clone manual page,
   a stray colon between the server and path components is only allowed
   when working over SSH (to mimic scp's convention).
   So are you cloning via SSH?  I would not be surprised it doesn't work
   for git:// or http[s]://.
 * Shouldn't this problem be reported to the TortoiseGit's tracker?
   Personally, I don't care but I think it's a good idea.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.