Scott Weldon
Scott Weldon

Reputation: 10227

Why does Gitolite give 'invalid repo name' on clone?

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

$ git clone ssh://[email protected]: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 [email protected] info gives:

hello me, this is [email protected] 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?

Upvotes: 1

Views: 213

Answers (1)

Scott Weldon
Scott Weldon

Reputation: 10227

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.

Upvotes: 1

Related Questions