Questions tagged [git-http-backend]

git-http-backend is a CGI backend for git smart http. Use this tag when troubing with push/pull with remote git repo, or setting up a git server via this backend.

git-http-backend is a CGI backend for git server with smart http. Its working depends on Webserver config and CGI environment. Fastcgi wrap is needed for Nginx conf.

document

28 questions
1
vote
1 answer

Git Smart HTTP protocol fails to execute server side hooks on push

I'm trying to set up smart HTTP using git-http-backend. I tried to follow plenty of documentation/guides online on how to do this. I'm running Apache 2.4 on Windows 7. In my httpd.conf I have SetEnv GIT_PROJECT_ROOT c:/repos SetEnv…
solstice333
  • 3,399
  • 1
  • 31
  • 28
1
vote
1 answer

git-http-backend/nginx - error 22 on push

I have an online server (Ubuntu 17.04) that host my bare repos. I tried to set up HTTPS on this server, and I can pull but I can't push, it fails with the following error: error: Cannot access URL https://user:passwd@myserver.com/REPO/, return…
Krapow
  • 611
  • 6
  • 26
1
vote
2 answers

Trying to setup smart http git server with nginx: "The requested URL returned error: 502"

I am trying to set up a server for a git repo by using smart http with nginx. I followed the answer on https://stackoverflow.com/a/17553364. Though when I execute git clone http://mydomian.de/git/test, it returns: Cloning into 'xmlTest' ... fatal:…
1
vote
0 answers

How to shard git servers?

I have N git repositories that I want to shard across M git servers behind a load balancer, but I'm not sure how to do this. For example, if I'm on Client 1 git push foo master should to push to server A, and on Client 2 git push bar master to…
Jesse Shieh
  • 4,660
  • 5
  • 34
  • 49
0
votes
2 answers

Clone git use HTTP in Local from AWS EC2

I made AWS EC2 and succeeded in clone with ssh. Here is example. git clone ssh://ubuntu@:/home/ubuntu/git/chm/ Clone was successful at local with the following instructions, and all commits and push are possible. However, I want to perform the clone…
papav
  • 15
  • 3
0
votes
1 answer

How to create remote git repository over http(s)

So far: I have apache and git-http-backend running on my own (home) server. I can ssh to the server and create a repository. I am able to clone the servers repo locally, make changes and push back to the server. I am going to create many small…
Ingo
  • 75
  • 1
  • 9
0
votes
1 answer

Is there a specific regular expression of HTTP URIs a git client operates on?

I'm trying to configure my Apache reverse proxy to match URIs accessed by git clients using the HTTP backend, for authentication purposes¹. For this I would like to match HTTP requests on the URI on the proxy and treat them differently. No problem…
gertvdijk
  • 24,056
  • 6
  • 41
  • 67
0
votes
1 answer

git-http-backend returns 500 error if repo to be cloned is a submodule

I have a container that serves git repositories on a path binded to /git inside of it. This container nginx configuration: https://github.com/ipburger/alpine-http-git-server/blob/master/nginx.conf If the repo on /git is a submodule, cloning fails…
0
votes
1 answer

Git HTTP error 'fatal: protocol error: bad line length character: '

I'm currently trying to create a simple Git HTTP Server in C without an already existing Web server. Currently the only thing I do is creating a server socket and executing the git-http-backend CGI script with the Environment Variables from the…
0
votes
1 answer

Lighttpd git-http-backend setenv issue

I had a functioning setup on Ubuntu 14.04 with Lighttpd 1.4.33 installed via apt which passed to git-http-backend for git http pull/push. This was authenticated via ldap. A new requirement for ldap group lookups meant I needed to update lighttpd to…
0
votes
1 answer

nginx with git-http-backend: insufficent access permission for `git push` with www-data user

I am trying to set up nginx with fcgiwrap to forward requests under https:///git/.git to git-http-backend. The server is freshly installed debian linux, so there should be no awkward things in the background. Error scenario The fcgiwrap…
Otti
  • 46
  • 1
  • 7
0
votes
1 answer

NGINX not starting git-http-server

I'm working on a Git server behind Nginx using the git git-http-backend script. Currently I have a passenger server that's working serving a rails app at port 2222. However, behind the /git/ folder I want to serve git repositories. The thing is,…
gigha
  • 41
  • 1
  • 10
-1
votes
1 answer

fatal: protocol 'https' is not supported git push not working?

I have set the origin to my online Git Repository and there is nothing to commit git status On branch main nothing to commit, working tree clean but still I am getting this when I try to push my README.md,html, css, js and some images files $ git…
1
2