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
23
votes
1 answer

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

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…
Jon
  • 15,110
  • 28
  • 92
  • 132
21
votes
2 answers

How to set up git over http?

I need to set up a git server with git-over-http (smart http), but the resources available online are a mess, mixing in other apache configuration, missing details or not being explicit enough. I am answering this question myself based on what I…
Marmoy
  • 8,009
  • 7
  • 46
  • 74
15
votes
2 answers

git-http-backend

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 ServerName git.server.com SetEnv GIT_PROJECT_ROOT /srv/git SetEnv…
Michael Pfeuti
  • 371
  • 1
  • 2
  • 6
10
votes
1 answer

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

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):
hjpotter92
  • 78,589
  • 36
  • 144
  • 183
10
votes
4 answers

Apache and git-http-backend

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…
MichaelO
  • 438
  • 1
  • 3
  • 12
6
votes
1 answer

Git push freezes at writing objects and gives 504 error

Problem Git hangs while writing objects for a 81 kB repo over HTTPS (SSH is not allowed). The specific error message from Nginx's access.log is as follow: POST /Hello-World/.git/git-receive-pack HTTP/1.1" 504 183 "-"…
pairwiseseq
  • 313
  • 2
  • 13
4
votes
1 answer

git push with http/2 sometimes hangs with "17 bytes stray data"

I'm using git-http-backend behind apache and some, but not all, users are saying that git push hangs for them. After enabling GIT_TRACE=1 GIT_CURL_VERBOSE=1, we see that they are using http/2 and there is a suspicious line that says 17 bytes stray…
Jesse Shieh
  • 4,660
  • 5
  • 34
  • 49
2
votes
1 answer

Differences between git-receive-pack/git-upload-pack and git-http-backend

To understand more about git, I try to write a very simple Git server using Python and Flask. I registered an endpoint and redirect the calls to git-http-backend. So far a simple pull works fine. Also simple/small pushes go through. Now I stumbled…
Daniel Stephens
  • 2,371
  • 8
  • 34
  • 86
2
votes
1 answer

Trying to make git http backend with mutli repository and multi users

I made a git server with git http backend. I created 2 repositories (Project1, Project2) and 3 users (user1, user2, user3). When I clone with command: git clone http://myodmain/Project1/ I want only user1 and user2 to have access to this clone…
Blood Tear
  • 21
  • 2
2
votes
1 answer

uWSGI + nginx + git-http-backend

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 …
Psottek
  • 31
  • 4
2
votes
1 answer

Setting Up git-http-backend with apache 2.4

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…
bradimus
  • 825
  • 11
  • 25
1
vote
0 answers

Problems with git-http-backend and Nginx

I'm trying to host a simple Git server on a Debian 11 ARM server, using stagit and a git hook to build purely static git pages, using git-http-backend as a smart git service. I've resolved the domain to the server IP (I'm using Cloudflare, and I…
Dejavu Moe
  • 11
  • 2
1
vote
0 answers

How to perform push/pull git operations over http with git2, and actix-web?

I'm writing a git server (a better term would be i've been trying to write a git server for a long time). I'm writing it in rust, with actix-web and git2 (libgit2 bindings for rust). As far as I understand from the documentation, the general process…
al3x
  • 589
  • 1
  • 4
  • 16
1
vote
0 answers

git http-backend: the remote end hung up unexpectedly

I have a webserver which accepts incoming connections from a Git client and redirects them to git-http-backend. A clone works very well, but a push fails with: $ git push -u origin Enumerating objects: 4317, done. Counting objects: 100% (4317/4317),…
Daniel Stephens
  • 2,371
  • 8
  • 34
  • 86
1
vote
0 answers

Bare git repo not cloneable after commit pushed

I have a problem with own git server on which I only use the git-http-backend. I discover that after I create the empty repository on the server with this: git init --bare I can clone the empty repo on any host with any user, git clone…
Psottek
  • 31
  • 4
1
2