Handle http.* config variables pointing to files gracefully on Windows
commit42f65d4f7b9ab37b7afb45e5e28b5cff3659edd0
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 14 Feb 2012 20:00:34 +0000 (14 14:00 -0600)
tree2fa09e2205c2d2f1ef88129de2f211d767197810
parent99c07dcd03ae6e4af3a132bfa7f72a984fdf1519
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