summaryrefslogtreecommitdiff
path: root/builtin/diff-index.c
diff options
context:
space:
mode:
authorLibravatar Tay Ray Chuan <rctay89@gmail.com>2010-11-25 16:21:07 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-11-26 14:50:45 -0800
commit0fdadc501ee42c530946731718dfdd710f4005d3 (patch)
tree698ee83bf813f6765c9e57452cab53b0263c7a02 /builtin/diff-index.c
parenthttp-backend: use end_url_with_slash() (diff)
downloadtgif-0fdadc501ee42c530946731718dfdd710f4005d3.tar.xz
http-push: Normalise directory names when pushing to some WebDAV servers
Fix a bug when pushing to WebDAV servers which do not use a trailing slash for collection names. The previous implementation fails to see that the requested resource "refs/" is the same resource as "refs" and loads every reference twice (once for refs/ and once for refs). This implementation normalises every collection name by appending a trailing slash if necessary. This can be tested with old versions of Apache (such as the WebDAV server of GMX, Apache 2.0.63). Based-on-patch-by: Gabriel Corona <gabriel.corona@enst-bretagne.fr> Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff-index.c')
0 files changed, 0 insertions, 0 deletions