{"thread":{"id":"17691","subject":"git push does not work properly on git over http server","startedAt":"2009-02-10T09:19:51Z","lastAt":"2009-02-10T10:41:25Z","messageCount":2,"participants":["javier.martinc@alumnos.unican.es","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"103959","messageId":"20090210101951.2v9ltl1rqqskoc44@correo.alumnos.unican.es","threadId":"17691","inReplyTo":null,"subject":"git push does not work properly on git over http server","fromName":"","fromEmail":"javier.martinc@alumnos.unican.es","sentAt":"2009-02-10T09:19:51Z","receivedAt":"2009-02-10T09:19:51Z","isPatch":false,"sender":{"key":"javier.martinc@alumnos.unican.es","avatar":null},"body":"Hi,\nwe have set up a git server over http in our office following this\ndocumentation:\nhttp://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt\n\nI have made git clone locally in another PC:\ngit clone http://git.vsilicon.net/linux-2.6.22.y.git/\n\nAnd have started developing and creating a new branch with several commits:\n\ngit checkout -b visstrim v2.6.22\n\n\nThen I would like to push my new branch to the remote server:\ngit push --all origin\nFetching remote heads...\n  refs/\n  refs/tags/\n  refs/heads/\n'refs/heads/visstrim': up-to-date\n'refs/heads/master': up-to-date\n\nBut then I do:\ngit branch -r\n  origin/HEAD\n  origin/master\n\nAnd new branch hasn't gone remote.\n\nI have tested curl succesfully and dav with cadaver and everything goes fine, I\ncan read/write/lock without problems.\n\nIf I check apache log in LEO I can find that command \"git push --all origin\"\nonly does GET http commands:\n\n192.168.1.40 - - [10/Feb/2009:10:14:34 +0100] \"PROPFIND /linux-2.6.22.y.git/\nHTTP/1.1\" 207 563 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] \"HEAD\n/linux-2.6.22.y.git/info/refs HTTP/1.1\" 200 - \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] \"HEAD\n/linux-2.6.22.y.git/objects/info/packs HTTP/1.1\" 200 - \"-\" \"git/1.5.4.3\"\n192.168.1.40 - javier [10/Feb/2009:10:14:35 +0100] \"MKCOL\n/linux-2.6.22.y.git/info HTTP/1.1\" 301 337 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - javier [10/Feb/2009:10:14:35 +0100] \"MKCOL\n/linux-2.6.22.y.git/info/ HTTP/1.1\" 405 328 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - javier [10/Feb/2009:10:14:35 +0100] \"LOCK\n/linux-2.6.22.y.git/info/refs HTTP/1.1\" 200 481 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] \"GET\n/linux-2.6.22.y.git/objects/info/packs HTTP/1.1\" 200 54 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] \"HEAD\n/linux-2.6.22.y.git/objects/pack/pack-344b10aeb57893911de8879e3e279847726e3151.pack\nHTTP/1.1\" 200 - \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:35 +0100] \"PROPFIND\n/linux-2.6.22.y.git/refs/ HTTP/1.1\" 207 2599 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:36 +0100] \"PROPFIND\n/linux-2.6.22.y.git/refs/tags/ HTTP/1.1\" 207 85930 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:36 +0100] \"GET\n/linux-2.6.22.y.git//refs/tags/v2.6.22.18 HTTP/1.1\" 200 41 \"-\" \"git/1.5.4.3\"\n..............................................................................................................................\n192.168.1.40 - - [10/Feb/2009:10:14:46 +0100] \"GET\n/linux-2.6.22.y.git//refs/tags/v2.6.17 HTTP/1.1\" 200 41 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:46 +0100] \"PROPFIND\n/linux-2.6.22.y.git/refs/heads/ HTTP/1.1\" 207 2600 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:47 +0100] \"GET\n/linux-2.6.22.y.git//refs/heads/visstrim HTTP/1.1\" 200 41 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - - [10/Feb/2009:10:14:47 +0100] \"GET\n/linux-2.6.22.y.git//refs/heads/master HTTP/1.1\" 200 41 \"-\" \"git/1.5.4.3\"\n192.168.1.40 - javier [10/Feb/2009:10:14:47 +0100] \"UNLOCK\n/linux-2.6.22.y.git/info/refs HTTP/1.1\" 204 - \"-\" \"git/1.5.4.3\"\n\nShouldn't it show PUT commands since git push is supposed to upload data to\nremote server?\n\nAny idea? I have been looking for this problem through the net for several days\nwith no success.\n"},{"id":"103966","messageId":"alpine.DEB.1.00.0902101140360.10279@pacific.mpi-cbg.de","threadId":"17691","inReplyTo":"20090210101951.2v9ltl1rqqskoc44@correo.alumnos.unican.es","subject":"Re: git push does not work properly on git over http server","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-02-10T10:41:25Z","receivedAt":"2009-02-10T10:41:25Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 10 Feb 2009, javier.martinc@alumnos.unican.es wrote:\n\n> And have started developing and creating a new branch with several commits:\n> \n> git checkout -b visstrim v2.6.22\n> \n> \n> Then I would like to push my new branch to the remote server:\n> git push --all origin\n> Fetching remote heads...\n>   refs/\n>   refs/tags/\n>   refs/heads/\n> 'refs/heads/visstrim': up-to-date\n\nWhy does it say \"up-to-date\"?  Maybe it is?\n\n> 'refs/heads/master': up-to-date\n> \n> But then I do:\n> git branch -r\n>   origin/HEAD\n>   origin/master\n\nProbably a \"git fetch\" solves the issue.\n\nYes, http-push has been neglected.\n\nCiao,\nDscho\n"}]}