Hi ,
I have a gitorious installation that works with ssh but there is requirement
to get it working with http/https. I got the "git clone" working with http
but not git push. I then came upon smart http and have been trying to use
that to get the git push to work but it hasn't . I have been looking at
various links but none of that has worked. My git.conf in conf.d has the
following configuration :
<VirtualHost *:80>
ServerName www.abc.test.com
ServerAlias www.git.abc.test.com
DocumentRoot /var/www/gitorious/public
RewriteEngine On
ErrorLog /var/log/httpd/gitorious-error.log
LogLevel debug
SetEnv GIT_PROJECT_ROOT /var/www/gitorious/public/repo --- this is a
soft link to /var/git/repositories . The config/gitorious.yml points
to /var/www/gitorious/public/repo.
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
<Directory /var/www/gitorious/public>
Allow from all
Options -Multiviews
</Directory>
</VirtualHost>
As a user, when I try to do a "git push origin master" , I get this error :
*-bash-3.2$ git push origin master*
error: Cannot access URL http://git.abc.test.com/test/test.git/, return code
22
fatal: git-http-push failed
.git/config has the following
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = http://git.abc.test.com/test/test.git
[branch "master"]
remote = origin
merge = refs/heads/master
How can I get this to work? Also, will the same changes work for https ?
thanks
Ranjan
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]