Handle http.* config variables pointing to files gracefully on Windows
commit8ce531f092a11fbe403ce69617c5271287139525
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, 19 Dec 2010 22:17:49 +0000 (19 23:17 +0100)
tree94bc7256d69828037c3a9c639530a20b798fa26d
parentb2ac0cceea0363e802851f04ad1ca63c76318984
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