Handle http.* config variables pointing to files gracefully on Windows
commit3428898e03b560d81d073f4f0f16c39a79175088
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 17 Feb 2011 12:36:25 +0000 (17 13:36 +0100)
tree6f8a886ed33f3f658a59abd9fa972976e3c45f0f
parent1092ccab2e45ea78fb56f973122a5fcd252f3ef3
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