Handle http.* config variables pointing to files gracefully on Windows
commit47d0d19e8dd640e13b20cc270ab6a3e22120f848
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 29 Nov 2013 13:14:02 +0000 (29 13:14 +0000)
treea815cee383365bdc75c059cbd49a72eb85fff737
parentbbc0bfc63337506bca19488a1125f58f39a3bd09
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