ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

Does not appear to be a git repository #138

Open clintberry opened 12 years ago

clintberry commented 12 years ago

I setup the plugin on chiliproject and all is well. When I go into the configure page I see nothing but green check boxes :-)

However, when I try to push to origin or clone a repo from my workstation, it asks me for my password, then gives me a fatal error:

fatal: 'myrepo.git' does not appear to be a gie repository fatal: The remote end hung up unexpectedly

I went into /home/git/repositories to see if the git repo was in fact there, and it certainly is there (which is awesome). Is it possible that when I am connecting it is looking in the wrong place for the repo?

incorvia commented 12 years ago

That was happening to me for awhile Clint, though I tried a million things and eventually something worked. One thing that helped me was I had two entries in my authorized_keys on the server.. one inside and one outside the gitolite reserved section.. when I deleted the one 'outside' that gave me some progress.. Aside from that make sure you are using the correct key, that you've uploaded one for your user into ChiliProject, that the pub version is in the keydir and that the permissions are being set correctly in the gitolite.conf.... Another thing that got me stuck with the same issue was my ssh config on my local wasn't using the correct key... got all those things straightened out and it finally worked for me.. believe me though its most likely a key issue and 'the repo isn't there' thing....

clintberry commented 12 years ago

Thanks for your suggestions, incorvia. I will look into that. I realized quickly after I posted that I can still clone and push the repo via HTTP, and since I am on the same network, I am totally okay with that for now.