Handle http.* config variables pointing to files gracefully on Windows
commit899d9ea8ed7a55f26b9b552fd5455e3b68ebda9b
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:18 +0000 (15 18:05 +0100)
treea821ad7feb255e9220cde74cb74b8fe5eea0f324
parent75612f8e5d398805b3534f59d8d398f5c5eb1e00
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