Handle http.* config variables pointing to files gracefully on Windows
commit608e7d0cf19f10b034ee2caff3b0df1af33840cf
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 12 May 2012 04:25:47 +0000 (11 23:25 -0500)
treed113ae1f6155a700e3d61d9655640584d2d4a83d
parenta6dfde5a1d4ca82aabc21bfe1f6126906ed60bdb
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