git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git push failure over webdav if no trailing slash on URL

From
JCJames Cloos <cloos+vger-git@jhcloos.com>
Date
Mar 7, 2007, 17:59 UTC
Message-ID
<m33b4hylw3.fsf@lugabout.jhcloos.org>
I just discovered a failure mode when pushing over webdav.
I did a clone akin to:
git clone http://NAME:PW@SITE/git/foo/bar
and was unable to push with just a
git push

I watched with ngrep and found that git-http-push authenticated after the initial connect, got a 100 reply with a Location header of /git/foo/bar/ (note the trailing slash), authenticated again, got another 100 reply OKing the 2nd authentication and then failed to continue.

If instead I ran:
git push http://NAME:PW@SITE/git/foo/bar/
(specifying that trailing slash) everything worked as expected.

This occured with each of git 1.4.2.1 and 1.5.0.2. (In both cases as packaged by debian.)

NB that the use of webdav wasn't my choice.
Nor was http rather than https.
Next: Johannes Schindelin
Message 1 of 2 in “git push failure over webdav if no trailing slash on URL”
  1. James CloosMar 7, 2007
  2. Johannes SchindelinMar 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.