Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-15

Re: [PATCH] http-push and http-fetch: handle URLs without leading /

From: Mike Hommey <hidden>
Date: 2016-06-15 22:44:06

On Sat, Jan 19, 2008 at 04:22:50PM +0100, Grégoire Barbier wrote:
Since HTTP/302 is not handled in the git code calling curl, URLs without
leading / used to lead to frozen git-fetch or git-push with no error message.

Furthermore, http-push freeze forces the user to interrupt it (^C) and
therefore to leave a dandling webdav lock that makes the remote repository
un-pushable for 10 minutes.

The patch does not make curl calls handle HTTP/302 but instead adds a / at
the end of URLs that does not have it yet.
Actually, it would be much better to do just that, i.e. handle HTTP 302
return codes. I suspect there may be other cases leading to similar dead
locks with other HTTP codes. But that might just be easier to deal with
once my refactoring will be done ;)

Mike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help