Handle http.* config variables pointing to files gracefully on Windows
commit7441cb360160123753a4c84570cf33487aed7b2e
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, 28 Dec 2010 17:56:10 +0000 (28 18:56 +0100)
treeafdd7be33eac186edcddc5f23d821731d11a6f77
parent62af20ec648ed869d27b845f24465136f8a24002
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