Handle http.* config variables pointing to files gracefully on Windows
commitb1f7f84484eb31664fc43ac4c04b2099bfb1e8b1
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, 1 Feb 2011 22:23:26 +0000 (1 16:23 -0600)
treeb69179306f8237702edac14de5f4d433914c89e5
parentcb867a89216f47a8e828ca3c7617831f1648aeb2
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