Handle http.* config variables pointing to files gracefully on Windows
commitaa7d9f92c0810ca964298cab924a533b3ec58147
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 31 Oct 2011 16:47:55 +0000 (31 11:47 -0500)
tree06d5f26a78b23e9c81c46f47d789d9a382b7fac4
parentabb969ff52c82278067177c5283c27abdd097d69
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