Handle http.* config variables pointing to files gracefully on Windows
commitd9400bcca34bc6e70e5e8286df5a4b0fb67f15cf
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerStepan Kasal <kasal@ucw.cz>
Wed, 16 Apr 2014 14:33:04 +0000 (16 16:33 +0200)
tree0c0f335d68f6918349c6f99303fd03e7e6c3eb64
parentd4c36517ad7e3a3537719a79f95e48d1e0caf64a
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