Closed ramzeska closed 13 years ago
Did you enable smart http for both http and https in the repository settings page? What exactly are you seeing on the command line when you try to clone the repo via smart http?
Yes, both enabled, i can't enable only http, i can choose https only or https+http or off.
error:
error: Cannot access URL http://admin@192.168.1.185/test.git/, return code 22
fatal: git-http-push failed
What version of git are you using (git --version) ?
Also, were you prompted for a password? I don't see that in your output.
i tryed this:
git version 1.7.4.4 git version 1.7.2.3
git push -u http master
Password:
Password:
error: Cannot access URL http://admin@192.168.1.185/test.git/, return code 22
fatal: git-http-push failed
You're sure user admin has manager or developer permissions for the test project?
Yes, of course, user have manager and developer and also admin right.
I have some new information, quite cool btw,
I unchecked the Authentication required check box (Administration -> Settings -> Authentication ) then it start working, but bad side, that if project are public then anybody can clone it, so everyone have read only permissions.
So the problem that if auth check box set on, then nothing work.
I cannot set this box off, we use redmine privatly in our company, without public at all, even registration.
P.S. btw at now, there are no need installing mod_fcgid add "Passheader Authorization" into the virtual host configuration file at all.
Ah... that allowed me to reproduce and fix the problem. Should be working now
Thanks for bringing this to my attention and digging a little deeper to find the setting that was triggering the issue.
I cannot get smart http working.
I use apache 2 with ruby enterprise and passenger on debian 6 amd64. my apache config is:
production.log
So problem is definitely in authentication. As you say in readme, there are no need to set up any configuration. If i first login in browser then go to http://192.168.1.185/test.git/info/refs/ or http://192.168.1.185/test.git/info/refs/?service=git-receive-pack it works ok.
thx.