{"thread":{"id":"15605","subject":"Problems with git over http","startedAt":"2008-09-20T17:13:53Z","lastAt":"2008-09-21T20:51:21Z","messageCount":7,"participants":["Sean Davis","Uwe Kleine-König","Jakub Narebski","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"91187","messageId":"264855a00809201013h6003abbfr9bbdd20c92e9201d@mail.gmail.com","threadId":"15605","inReplyTo":null,"subject":"Problems with git over http","fromName":"Sean Davis","fromEmail":"sdavis2@mail.nih.gov","sentAt":"2008-09-20T17:13:53Z","receivedAt":"2008-09-20T17:13:53Z","isPatch":false,"sender":{"key":"sdavis2@mail.nih.gov","avatar":null},"body":"I am new to git and trying to set up a remote repository over http.  I\nhave configured apache2 and the bare, empty repository.  Using curl, I\ncan get the file HEAD without a password (seems .netrc is correct?).\nHowever, when I try to push to the repository, I get the following:\n\nsdavis@lestrade:/tmp/testing> git push\nhttp://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\nfatal: exec http-push failed.\nerror: failed to push some refs to\n'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'\n\nWhat can I do to try to debug this, as the error message isn't helping\nme to sort out what is wrong.  The client and server are both running\ngit-1.5.x (although the minor versions are a bit different).  Any\nsuggestions?\n\nThanks,\nSean\n"},{"id":"91191","messageId":"20080920184257.GD18932@strlen.de","threadId":"15605","inReplyTo":"264855a00809201013h6003abbfr9bbdd20c92e9201d@mail.gmail.com","subject":"Re: Problems with git over http","fromName":"Uwe Kleine-König","fromEmail":"ukleinek@strlen.de","sentAt":"2008-09-20T18:42:57Z","receivedAt":"2008-09-20T18:42:57Z","isPatch":false,"sender":{"key":"ukleinek@strlen.de","avatar":"https://gravatar.com/avatar/71e008a89bd4c9d95c03e4823fa14b01e7f658bfc746c8a735286b945417f2d6?d=mp&s=160"},"body":"Hello Sean,\n\nOn Sat, Sep 20, 2008 at 01:13:53PM -0400, Sean Davis wrote:\n> I am new to git and trying to set up a remote repository over http.  I\n> have configured apache2 and the bare, empty repository.  Using curl, I\n> can get the file HEAD without a password (seems .netrc is correct?).\n> However, when I try to push to the repository, I get the following:\n> \n> sdavis@lestrade:/tmp/testing> git push\n> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\n> fatal: exec http-push failed.\n> error: failed to push some refs to\n> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'\n> \n> What can I do to try to debug this, as the error message isn't helping\n> me to sort out what is wrong.  The client and server are both running\n> git-1.5.x (although the minor versions are a bit different).  Any\n> suggestions?\nTry cloning first.  And check the error log of apache.  I don't know how\npushing over http works, but maybe you installed git into /usr/local and\n/usr/local/bin is not in the PATH for the apache user?\n\nBest regards\nUwe\n"},{"id":"91194","messageId":"264855a00809201340r397d2901h14a7e33a3eed5f06@mail.gmail.com","threadId":"15605","inReplyTo":"20080920184257.GD18932@strlen.de","subject":"Re: Problems with git over http","fromName":"Sean Davis","fromEmail":"sdavis2@mail.nih.gov","sentAt":"2008-09-20T20:40:11Z","receivedAt":"2008-09-20T20:40:11Z","isPatch":false,"sender":{"key":"sdavis2@mail.nih.gov","avatar":null},"body":"On Sat, Sep 20, 2008 at 2:42 PM, Uwe Kleine-König <ukleinek@strlen.de> wrote:\n> Hello Sean,\n>\n> On Sat, Sep 20, 2008 at 01:13:53PM -0400, Sean Davis wrote:\n>> I am new to git and trying to set up a remote repository over http.  I\n>> have configured apache2 and the bare, empty repository.  Using curl, I\n>> can get the file HEAD without a password (seems .netrc is correct?).\n>> However, when I try to push to the repository, I get the following:\n>>\n>> sdavis@lestrade:/tmp/testing> git push\n>> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\n>> fatal: exec http-push failed.\n>> error: failed to push some refs to\n>> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'\n>>\n>> What can I do to try to debug this, as the error message isn't helping\n>> me to sort out what is wrong.  The client and server are both running\n>> git-1.5.x (although the minor versions are a bit different).  Any\n>> suggestions?\n> Try cloning first.  And check the error log of apache.  I don't know how\n> pushing over http works, but maybe you installed git into /usr/local and\n> /usr/local/bin is not in the PATH for the apache user?\n\nThanks, Uwe.  Good idea.  On the client:\n\norf-01569049:/tmp sdavis$ git clone\nhttp://sdavis@watson.nci.nih.gov/git/sean_git.git/\nInitialized empty Git repository in /tmp/sean_git/.git/\ncat: /tmp/sean_git/.git/refs/remotes/origin/master: No such file or directory\n/usr/local/bin/git-clone: line 4: cd:\n/tmp/sean_git/.git/refs/remotes/origin: No such file or directory\nfatal: Not a valid object name HEAD\n\nNothing in the error_log on apache.  Why would git be looking for a\nremotes origin since I am cloning from a remote source?\n\nSean\n"},{"id":"91197","messageId":"m3wsh6lck1.fsf@localhost.localdomain","threadId":"15605","inReplyTo":"264855a00809201013h6003abbfr9bbdd20c92e9201d@mail.gmail.com","subject":"Re: Problems with git over http","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-09-20T21:42:08Z","receivedAt":"2008-09-20T21:42:08Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Sean Davis\" <sdavis2@mail.nih.gov> writes:\n\n> I am new to git and trying to set up a remote repository over http.  I\n> have configured apache2 and the bare, empty repository.  Using curl, I\n> can get the file HEAD without a password (seems .netrc is correct?).\n> However, when I try to push to the repository, I get the following:\n> \n> sdavis@lestrade:/tmp/testing> git push\n> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\n> fatal: exec http-push failed.\n> error: failed to push some refs to\n> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'\n\nErrr... to _push_ via https you have to enable WebDAV.\nSee Documentation/howto/setup-git-server-over-http.txt\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"91204","messageId":"264855a00809201527l1b5d99bdr85d96771d8a9efd4@mail.gmail.com","threadId":"15605","inReplyTo":"m3wsh6lck1.fsf@localhost.localdomain","subject":"Re: Problems with git over http","fromName":"Sean Davis","fromEmail":"sdavis2@mail.nih.gov","sentAt":"2008-09-20T22:27:04Z","receivedAt":"2008-09-20T22:27:04Z","isPatch":false,"sender":{"key":"sdavis2@mail.nih.gov","avatar":null},"body":"On Sat, Sep 20, 2008 at 5:42 PM, Jakub Narebski <jnareb@gmail.com> wrote:\n> \"Sean Davis\" <sdavis2@mail.nih.gov> writes:\n>\n>> I am new to git and trying to set up a remote repository over http.  I\n>> have configured apache2 and the bare, empty repository.  Using curl, I\n>> can get the file HEAD without a password (seems .netrc is correct?).\n>> However, when I try to push to the repository, I get the following:\n>>\n>> sdavis@lestrade:/tmp/testing> git push\n>> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\n>> fatal: exec http-push failed.\n>> error: failed to push some refs to\n>> 'http://sdavis@watson.nci.nih.gov/git/sean_git.git/'\n>\n> Errr... to _push_ via https you have to enable WebDAV.\n> See Documentation/howto/setup-git-server-over-http.txt\n\nWebDAV is enabled and authentication is working.\n\nSean\n"},{"id":"91237","messageId":"vpqskrto48n.fsf@bauges.imag.fr","threadId":"15605","inReplyTo":"264855a00809201013h6003abbfr9bbdd20c92e9201d@mail.gmail.com","subject":"Re: Problems with git over http","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2008-09-21T16:25:44Z","receivedAt":"2008-09-21T16:25:44Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"\"Sean Davis\" <sdavis2@mail.nih.gov> writes:\n\n> I am new to git and trying to set up a remote repository over http.  I\n> have configured apache2 and the bare, empty repository.  Using curl, I\n> can get the file HEAD without a password (seems .netrc is correct?).\n> However, when I try to push to the repository, I get the following:\n>\n> sdavis@lestrade:/tmp/testing> git push\n> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\n> fatal: exec http-push failed.\n\nDo you have git-http-push somewhere? What does \"git http-push\" say?\n\nProbably you have a version of Git compiled with a too old libcurl\n(IIRC, it could have \"worked\", but a bug in the old libcurl could\ncause repository corruption, and therefore, git refuses to build\nhttp-push with such version of libcurl).\n\n-- \nMatthieu\n"},{"id":"91261","messageId":"264855a00809211351j1392ad97xf2cd98944014edc@mail.gmail.com","threadId":"15605","inReplyTo":"vpqskrto48n.fsf@bauges.imag.fr","subject":"Re: Problems with git over http","fromName":"Sean Davis","fromEmail":"sdavis2@mail.nih.gov","sentAt":"2008-09-21T20:51:21Z","receivedAt":"2008-09-21T20:51:21Z","isPatch":false,"sender":{"key":"sdavis2@mail.nih.gov","avatar":null},"body":"On Sun, Sep 21, 2008 at 12:25 PM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:\n> \"Sean Davis\" <sdavis2@mail.nih.gov> writes:\n>\n>> I am new to git and trying to set up a remote repository over http.  I\n>> have configured apache2 and the bare, empty repository.  Using curl, I\n>> can get the file HEAD without a password (seems .netrc is correct?).\n>> However, when I try to push to the repository, I get the following:\n>>\n>> sdavis@lestrade:/tmp/testing> git push\n>> http://sdavis@watson.nci.nih.gov/git/sean_git.git/ master\n>> fatal: exec http-push failed.\n>\n> Do you have git-http-push somewhere? What does \"git http-push\" say?\n>\n> Probably you have a version of Git compiled with a too old libcurl\n> (IIRC, it could have \"worked\", but a bug in the old libcurl could\n> cause repository corruption, and therefore, git refuses to build\n> http-push with such version of libcurl).\n\nThat was dumb on my part.  That is, indeed, an issue.  Both the mac\nbinary that I found and the rpm for opensuse do not include\ngit-http-push.\n\nSean\n"}]}