Handle http.* config variables pointing to files gracefully on Windows
commitf436ff126b050f307d32622d2547f26aa012ec4b
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 26 Jul 2009 03:08:42 +0000 (26 05:08 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 20 May 2012 23:45:20 +0000 (20 17:45 -0600)
treedb02791bc11d809f20f114a6c671b87e92fe6461
parentadace50af52af1392ac98d3cd4306a49922b5c6e
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