# git push failure over webdav if no trailing slash on URL

2 messages from 2007-03-07 to 2007-03-07. Participants: James Cloos, Johannes Schindelin.
Thread: https://gitlist.dev/t/7140

## James Cloos, 2007-03-07 17:59

Subject: git push failure over webdav if no trailing slash on URL
Message-ID: <m33b4hylw3.fsf@lugabout.jhcloos.org>
URL: https://gitlist.dev/e/m33b4hylw3.fsf%40lugabout.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.

```

## Johannes Schindelin, 2007-03-07 22:01

Subject: Re: git push failure over webdav if no trailing slash on URL
Message-ID: <Pine.LNX.4.63.0703072258330.22628@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0703072258330.22628%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <m33b4hylw3.fsf@lugabout.jhcloos.org>

```
Hi,

On Wed, 7 Mar 2007, James Cloos wrote:

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

It is vaguely described in 
Documentation/howto/setup-git-server-over-http.txt lines 211--

I also wanted to fix that behaviour, but since the trailing slash fixes 
push, never got around to do it.

Ciao,
Dscho

```
