Handle http.* config variables pointing to files gracefully on Windows
commit37ddb94627978459f3a8d2025d3a35957a24828b
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerjacques Pecreaux <jacques.pecreaux@googlemail.com>
Mon, 27 Sep 2010 12:34:02 +0000 (27 14:34 +0200)
treefba43f7e0c0a98b7a8175e2c80f3d5ca351a0387
parent351dbaeff9d2b51ab0732cf00ce174e7dff85c88
Handle http.* config variables pointing to files gracefully on Windows

On Windows, we would like to be able to have a default http.sslCAinfo
that points to an MSys path (i.e. relative to the installation root of
Git).  As Git is a MinGW program, it has to handle the conversion
of the MSys path into a MinGW32 path itself.

Since system_path() considers paths starting with '/' as absolute, we
have to convince it to make a Windows path by stripping the leading
slash.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
http.c