Handle http.* config variables pointing to files gracefully on Windows
commit2e2c9322cfeb6b6caaa43ff8c7aea71a7ae2e5fc
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:43:01 +0000 (15 09:43 +0200)
tree0129c512f1ab72913c30dd55178b8421e84db942
parent94696668a7cd46bc0a9e43c0496445d227d7bf98
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