{"thread":{"id":"18759","subject":"git over http not re-authenticating after 301 redirect?","startedAt":"2009-04-07T02:14:42Z","lastAt":"2009-04-09T17:20:06Z","messageCount":4,"participants":["Paul Vincent Craven","Martin Storsjö","Tay Ray Chuan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"110649","messageId":"5591393c0904061914y5ea26812kcfc0d14b52ed4300@mail.gmail.com","threadId":"18759","inReplyTo":null,"subject":"git over http not re-authenticating after 301 redirect?","fromName":"Paul Vincent Craven","fromEmail":"paul@cravenfamily.com","sentAt":"2009-04-07T02:14:42Z","receivedAt":"2009-04-07T02:14:42Z","isPatch":false,"sender":{"key":"paul@cravenfamily.com","avatar":null},"body":"When I do a git-push from a repository I set up, I get:\n\ncraven@craven-desktop:~/docs$ git push\nUnable to create branch path\nhttp://username:password@server.simpson.edu/my_repo.git/info\nError: cannot lock existing info/refs\nerror: failed to push some refs to\n'http://username:password@server.simpson.edu/my_repo.git/'\n\nThe web log shows:\n10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] \"PROPFIND\n/my_repo.git/ HTTP/1.1\" 207 559 \"-\" \"git/1.5.6.3\"\n10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] \"HEAD\n/my_repo.git/info/refs HTTP/1.1\" 200 - \"-\" \"git/1.5.6.3\"\n10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] \"HEAD\n/my_repo.git/objects/info/packs HTTP/1.1\" 200 - \"-\" \"git/1.5.6.3\"\n10.1.21.232 - username [06/Apr/2009:21:24:04 -0500] \"MKCOL\n/my_repo.git/info HTTP/1.1\" 301 383 \"-\" \"git/1.5.6.3\"\n10.1.21.232 - - [06/Apr/2009:21:24:04 -0500] \"MKCOL /my_repo.git/info/\nHTTP/1.1\" 401 536 \"-\" \"git/1.5.6.3\"\n\nNote that after the 301 redirect, I don't seem to have a username sent\nanymore. I'm not sure this is the issue, but is seems like a\npossibility.\n\nI have the same issue on other computers that have cloned the repository.\n\nThe /my_repo.git/info/ directory does exist.\n\nI thought I had this working the first day I set it up, but now it no\nlonger does. If someone could point me in the correct direction, I'd\nappreciate it.\n\n-- \nPaul Vincent Craven\n"},{"id":"110669","messageId":"Pine.LNX.4.64.0904071041200.5901@localhost.localdomain","threadId":"18759","inReplyTo":"5591393c0904061914y5ea26812kcfc0d14b52ed4300@mail.gmail.com","subject":"Re: git over http not re-authenticating after 301 redirect?","fromName":"Martin Storsjö","fromEmail":"martin@martin.st","sentAt":"2009-04-07T07:42:43Z","receivedAt":"2009-04-07T07:42:43Z","isPatch":false,"sender":{"key":"martin@martin.st","avatar":"https://avatars.githubusercontent.com/u/69727?v=4"},"body":"Hi Paul,\n\nOn Mon, 6 Apr 2009, Paul Vincent Craven wrote:\n\n> Note that after the 301 redirect, I don't seem to have a username sent\n> anymore. I'm not sure this is the issue, but is seems like a\n> possibility.\n> \n> I have the same issue on other computers that have cloned the repository.\n> \n> The /my_repo.git/info/ directory does exist.\n> \n> I thought I had this working the first day I set it up, but now it no\n> longer does. If someone could point me in the correct direction, I'd\n> appreciate it.\n\nIt's a long shot, but try see if you can upgrade to a newer version of \nlibcurl; I think I saw some issue like this when I was experimenting with \ndifferent http auth setups last week, that was solved by using newer \nversions...\n\n// Martin\n"},{"id":"110728","messageId":"5591393c0904071225w7d5a426ap50cb5f973e34f802@mail.gmail.com","threadId":"18759","inReplyTo":"Pine.LNX.4.64.0904071041200.5901@localhost.localdomain","subject":"Re: git over http not re-authenticating after 301 redirect?","fromName":"Paul Vincent Craven","fromEmail":"paul@cravenfamily.com","sentAt":"2009-04-07T19:25:53Z","receivedAt":"2009-04-07T19:25:53Z","isPatch":false,"sender":{"key":"paul@cravenfamily.com","avatar":null},"body":"On Tue, Apr 7, 2009 at 2:42 AM, Martin Storsjö <martin@martin.st> wrote:\n\n> It's a long shot, but try see if you can upgrade to a newer version of\n> libcurl; I think I saw some issue like this when I was experimenting with\n> different http auth setups last week, that was solved by using newer\n> versions...\n\nNo luck, but thanks for the suggestion. Updating to the March 3 build\nof curl 7.19.4 yielded the same results.\n\n-- \nPaul Vincent Craven\nhttp://www.cravenfamily.com\n"},{"id":"110931","messageId":"be6fef0d0904091020r45927bddq9751885f8e3f28b3@mail.gmail.com","threadId":"18759","inReplyTo":"5591393c0904061914y5ea26812kcfc0d14b52ed4300@mail.gmail.com","subject":"Re: git over http not re-authenticating after 301 redirect?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-04-09T17:20:06Z","receivedAt":"2009-04-09T17:20:06Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Tue, Apr 7, 2009 at 10:14 AM, Paul Vincent Craven\n<paul@cravenfamily.com> wrote:\n> Note that after the 301 redirect, I don't seem to have a username sent\n> anymore. I'm not sure this is the issue, but is seems like a\n> possibility.\n\ncould you check what version of git you have? This should have been\nfixed in 1.6.1.1.\n\n-- \nCheers,\nRay Chuan\n"}]}