# git push does not work properly on git over http server

2 messages from 2009-02-10 to 2009-02-10. Participants: javier.martinc@alumnos.unican.es, Johannes Schindelin.
Thread: https://gitlist.dev/t/17691

## javier.martinc@alumnos.unican.es, 2009-02-10 09:19

Subject: git push does not work properly on git over http server
Message-ID: <20090210101951.2v9ltl1rqqskoc44@correo.alumnos.unican.es>
URL: https://gitlist.dev/e/20090210101951.2v9ltl1rqqskoc44%40correo.alumnos.unican.es

```
Hi,
we have set up a git server over http in our office following this
documentation:
http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt

I have made git clone locally in another PC:
git clone http://git.vsilicon.net/linux-2.6.22.y.git/

And have started developing and creating a new branch with several commits:

git checkout -b visstrim v2.6.22


Then I would like to push my new branch to the remote server:
git push --all origin
Fetching remote heads...
  refs/
  refs/tags/
  refs/heads/
'refs/heads/visstrim': up-to-date
'refs/heads/master': up-to-date

But then I do:
git branch -r
  origin/HEAD
  origin/master

And new branch hasn't gone remote.

I have tested curl succesfully and dav with cadaver and everything goes fine, I
can read/write/lock without problems.

If I check apache log in LEO I can find that command "git push --all origin"
only does GET http commands:

192.168.1.40 - - [10/Feb/2009:10:14:34 +0100] "PROPFIND /linux-2.6.22.y.git/
HTTP/1.1" 207 563 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] "HEAD
/linux-2.6.22.y.git/info/refs HTTP/1.1" 200 - "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] "HEAD
/linux-2.6.22.y.git/objects/info/packs HTTP/1.1" 200 - "-" "git/1.5.4.3"
192.168.1.40 - javier [10/Feb/2009:10:14:35 +0100] "MKCOL
/linux-2.6.22.y.git/info HTTP/1.1" 301 337 "-" "git/1.5.4.3"
192.168.1.40 - javier [10/Feb/2009:10:14:35 +0100] "MKCOL
/linux-2.6.22.y.git/info/ HTTP/1.1" 405 328 "-" "git/1.5.4.3"
192.168.1.40 - javier [10/Feb/2009:10:14:35 +0100] "LOCK
/linux-2.6.22.y.git/info/refs HTTP/1.1" 200 481 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] "GET
/linux-2.6.22.y.git/objects/info/packs HTTP/1.1" 200 54 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] "HEAD
/linux-2.6.22.y.git/objects/pack/pack-344b10aeb57893911de8879e3e279847726e3151.pack
HTTP/1.1" 200 - "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] "PROPFIND
/linux-2.6.22.y.git/refs/ HTTP/1.1" 207 2599 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:36 +0100] "PROPFIND
/linux-2.6.22.y.git/refs/tags/ HTTP/1.1" 207 85930 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:36 +0100] "GET
/linux-2.6.22.y.git//refs/tags/v2.6.22.18 HTTP/1.1" 200 41 "-" "git/1.5.4.3"
..............................................................................................................................
192.168.1.40 - - [10/Feb/2009:10:14:46 +0100] "GET
/linux-2.6.22.y.git//refs/tags/v2.6.17 HTTP/1.1" 200 41 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:46 +0100] "PROPFIND
/linux-2.6.22.y.git/refs/heads/ HTTP/1.1" 207 2600 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:47 +0100] "GET
/linux-2.6.22.y.git//refs/heads/visstrim HTTP/1.1" 200 41 "-" "git/1.5.4.3"
192.168.1.40 - - [10/Feb/2009:10:14:47 +0100] "GET
/linux-2.6.22.y.git//refs/heads/master HTTP/1.1" 200 41 "-" "git/1.5.4.3"
192.168.1.40 - javier [10/Feb/2009:10:14:47 +0100] "UNLOCK
/linux-2.6.22.y.git/info/refs HTTP/1.1" 204 - "-" "git/1.5.4.3"

Shouldn't it show PUT commands since git push is supposed to upload data to
remote server?

Any idea? I have been looking for this problem through the net for several days
with no success.

```

## Johannes Schindelin, 2009-02-10 10:41

Subject: Re: git push does not work properly on git over http server
Message-ID: <alpine.DEB.1.00.0902101140360.10279@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0902101140360.10279%40pacific.mpi-cbg.de
In-Reply-To: <20090210101951.2v9ltl1rqqskoc44@correo.alumnos.unican.es>

```
Hi,

On Tue, 10 Feb 2009, javier.martinc@alumnos.unican.es wrote:

> And have started developing and creating a new branch with several commits:
> 
> git checkout -b visstrim v2.6.22
> 
> 
> Then I would like to push my new branch to the remote server:
> git push --all origin
> Fetching remote heads...
>   refs/
>   refs/tags/
>   refs/heads/
> 'refs/heads/visstrim': up-to-date

Why does it say "up-to-date"?  Maybe it is?

> 'refs/heads/master': up-to-date
> 
> But then I do:
> git branch -r
>   origin/HEAD
>   origin/master

Probably a "git fetch" solves the issue.

Yes, http-push has been neglected.

Ciao,
Dscho

```
