Handle http.* config variables pointing to files gracefully on Windows
commitddbd3fcf5e1461c54cdc74bea31ea0449a225d9d
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, 3 May 2012 15:32:50 +0000 (3 10:32 -0500)
tree41be3f3b60ebec27010d2484f0b25ebad5d1bca2
parentd4a135bc041d9850e2a618139b09d04adddf158f
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