1

I'm trying to clone a repo from my server running Gitolite, but it's giving me an error:

$ git clone ssh://git@git.example.com:1234/users/me/foo
Cloning into 'foo'...
FATAL: invalid repo name: 'users/me/foo'
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

However, I know the repo exists, because ssh -p 1234 git@git.example.com info gives:

hello me, this is git@git.example.com running gitolite3 v3.6-16-g4fefd3f on git 1.7.10.4

 R W    users/me/foo

I even copy/pasted the name of the repo from that output, so I know I didn't misspell it.

I'm doing this from Git Bash on Windows 8.

Why is this happening, and how can I fix it?

Scott Weldon
  • 9,673
  • 6
  • 48
  • 67

1 Answers1

1

Looks like I was hit by non-printing characters again.

As can be detected in my question, there is some non-printing character (which I haven't been able to identify) immediately before users, which causes the error.

After removing it, I was able to clone the repo successfully.

Scott Weldon
  • 9,673
  • 6
  • 48
  • 67