{"thread":{"id":"7140","subject":"git push failure over webdav if no trailing slash on URL","startedAt":"2007-03-07T17:59:49Z","lastAt":"2007-03-07T22:01:45Z","messageCount":2,"participants":["James Cloos","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"36562","messageId":"m33b4hylw3.fsf@lugabout.jhcloos.org","threadId":"7140","inReplyTo":null,"subject":"git push failure over webdav if no trailing slash on URL","fromName":"James Cloos","fromEmail":"cloos+vger-git@jhcloos.com","sentAt":"2007-03-07T17:59:49Z","receivedAt":"2007-03-07T17:59:49Z","isPatch":false,"sender":{"key":"cloos+vger-git@jhcloos.com","avatar":null},"body":"I just discovered a failure mode when pushing over webdav.\n\nI did a clone akin to:\n\ngit clone http://NAME:PW@SITE/git/foo/bar\n\nand was unable to push with just a\n\ngit push\n\nI watched with ngrep and found that git-http-push authenticated\nafter the initial connect, got a 100 reply with a Location header\nof /git/foo/bar/ (note the trailing slash), authenticated again,\ngot another 100 reply OKing the 2nd authentication and then failed\nto continue.\n\nIf instead I ran:\n\ngit push http://NAME:PW@SITE/git/foo/bar/\n\n(specifying that trailing slash) everything worked as expected.\n\nThis occured with each of git 1.4.2.1 and 1.5.0.2.  (In both cases\nas packaged by debian.)\n\nNB that the use of webdav wasn't my choice.\n\nNor was http rather than https.\n"},{"id":"36576","messageId":"Pine.LNX.4.63.0703072258330.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"7140","inReplyTo":"m33b4hylw3.fsf@lugabout.jhcloos.org","subject":"Re: git push failure over webdav if no trailing slash on URL","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-03-07T22:01:45Z","receivedAt":"2007-03-07T22:01:45Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 7 Mar 2007, James Cloos wrote:\n\n> If instead I ran:\n> \n> git push http://NAME:PW@SITE/git/foo/bar/\n> \n> (specifying that trailing slash) everything worked as expected.\n\nIt is vaguely described in \nDocumentation/howto/setup-git-server-over-http.txt lines 211--\n\nI also wanted to fix that behaviour, but since the trailing slash fixes \npush, never got around to do it.\n\nCiao,\nDscho\n"}]}