git-http-backend

uWSGI + nginx + git-http-backend

别来无恙 提交于 2019-12-22 12:18:06
问题 I have a problem to establish connection to git-http-backend on nginx with uwsgi. I can clone the repo but couldn't push anything because this: 17:20:58.877539 git.c:344 trace: built-in: git push -v 17:20:58.877648 run-command.c:640 trace: run_command: GIT_DIR=.git git-remote-http origin http://example.com/test.git Pushing to http://example.com/test.git * Couldn't find host example.com in the .netrc file; using defaults * Trying 192.168.0.120... * TCP_NODELAY set * Connected to example.com

Setting up Git Server on Windows With git-http-backend.exe

冷暖自知 提交于 2019-12-17 08:31:08
问题 I am in the process of setting up a Git server (1.7.2.3) on a WS 2008 machine using Apache and git-http-backend.exe. I have been following a good tut here. I have the GUI working, I can annoymously clone and if I put the following in the config of a repo I can annoymously push: [http] receivepack = true I have added the following to the httpd.conf file: SetEnv GIT_PROJECT_ROOT C:/GIT/Repositories SetEnv GIT_HTTP_EXPORT_ALL ScriptAliasMatch \ "(?x)^/(.*/(HEAD | \ info/refs | \ objects/(info/[^

Apache and git-http-backend

戏子无情 提交于 2019-12-10 03:11:25
问题 I am currently setting up some git repositories on a Ubuntu LTS 14.04 machine with Apache 2.4.7. This is the apache config: SetEnv GIT_PROJECT_ROOT /var/www/html/git SetEnv GIT_HTTP_EXPORT_ALL 1 SetEnv REMOTE_USER $REDIRECT_REMOTE_USER ScriptAliasMatch \ "(?x)^/git/(.*/(HEAD | \ info/refs | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$" \ /usr/lib/git-core/git-http-backend <Location /git/oswald.git> Options +ExecCGI

GitSmartHTTP for gitolite repositories over Apache does not allow me to push

情到浓时终转凉″ 提交于 2019-12-10 01:57:07
问题 I am setting up a git-http-backend CGI script to handle my git.domain subdomain. The server is behind an ELB (elastic load balancer) on AWS cloud. My server config is as follows (my git hosting is handled by gitolite): <VirtualHost *:80> ServerName git.domain ServerAdmin hjpotter92+git@domain #SuexecUserGroup git git DocumentRoot /opt/gitolite/repositories/ PerlLoadModule Apache::Authn::Redmine SetEnv GIT_PROJECT_ROOT /opt/gitolite/repositories/ SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # Have

Setting Up git-http-backend with apache 2.4

…衆ロ難τιáo~ 提交于 2019-12-08 01:19:16
问题 Im trying to set up a git server using git-http-backend and apache 2.4 I found this question about the same thing which was helpful, but I'm still reaching a point where I'm stuck. I've installed git and apache2 on Ubuntu 16.04 and added the needed modules using sudo a2enmod cgi alias env Then added the following snippet in /etc/apache2/apache2.conf : <VirtualHost *:80> SetEnv GIT_PROJECT_ROOT /var/www/git SetEnv GIT_HTTP_EXPORT_ALL SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER ScriptAliasMatch \

uWSGI + nginx + git-http-backend

泄露秘密 提交于 2019-12-06 07:29:46
I have a problem to establish connection to git-http-backend on nginx with uwsgi. I can clone the repo but couldn't push anything because this: 17:20:58.877539 git.c:344 trace: built-in: git push -v 17:20:58.877648 run-command.c:640 trace: run_command: GIT_DIR=.git git-remote-http origin http://example.com/test.git Pushing to http://example.com/test.git * Couldn't find host example.com in the .netrc file; using defaults * Trying 192.168.0.120... * TCP_NODELAY set * Connected to example.com (192.168.0.120) port 80 (#0) > GET /test.git/info/refs?service=git-receive-pack HTTP/1.1 Host: example

Apache and git-http-backend

北城余情 提交于 2019-12-05 05:12:17
I am currently setting up some git repositories on a Ubuntu LTS 14.04 machine with Apache 2.4.7. This is the apache config: SetEnv GIT_PROJECT_ROOT /var/www/html/git SetEnv GIT_HTTP_EXPORT_ALL 1 SetEnv REMOTE_USER $REDIRECT_REMOTE_USER ScriptAliasMatch \ "(?x)^/git/(.*/(HEAD | \ info/refs | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$" \ /usr/lib/git-core/git-http-backend <Location /git/oswald.git> Options +ExecCGI AuthType Basic DAV on AuthName "Git" AuthUserFile /etc/apache2/git_paragon_passwd Require valid-user

GitSmartHTTP for gitolite repositories over Apache does not allow me to push

本秂侑毒 提交于 2019-12-05 01:36:52
I am setting up a git-http-backend CGI script to handle my git.domain subdomain. The server is behind an ELB (elastic load balancer) on AWS cloud. My server config is as follows (my git hosting is handled by gitolite): <VirtualHost *:80> ServerName git.domain ServerAdmin hjpotter92+git@domain #SuexecUserGroup git git DocumentRoot /opt/gitolite/repositories/ PerlLoadModule Apache::Authn::Redmine SetEnv GIT_PROJECT_ROOT /opt/gitolite/repositories/ SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # Have also tried removing this variable SetEnv GIT_HTTP_EXPORT_ALL ScriptAliasMatch \ "(?x)^/(.*/(HEAD | \

git-http-backend

匆匆过客 提交于 2019-11-28 06:56:58
I tried to set up a git server with git-http-backend and everything works pretty much as I want but there is one little thing. The config <VirtualHost *:80> ServerName git.server.com SetEnv GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER ScriptAlias /git /usr/lib/git-core/git-http-backend/ <Directory "/usr/lib/git-core*"> Options ExecCGI Indexes Order allow,deny Allow from all </Directory> <LocationMatch "^/git/repos/git-receive-pack$"> AuthType Digest AuthName "Git Repositories" AuthUserFile /srv/git/.git-auth-file AuthGroupFile /srv/git/.git