handle lower case drive letters on Windows
authorBen Peart <Ben.Peart@microsoft.com>
Thu, 12 Jul 2018 15:44:36 +0000 (15:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Jul 2018 19:11:05 +0000 (12:11 -0700)
commit5a06a20e0c8820fb0ca8da019c7a9fe6eb30ec2f
tree4c3f1295e943f24300e95e59078191cd57e6a387
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
handle lower case drive letters on Windows

On Windows, if a tool calls SetCurrentDirectory with a lower case drive
letter, the subsequent call to GetCurrentDirectory will return the same
lower case drive letter. Powershell, for example, does not normalize the
path. If that happens, test-drop-caches will error out as it does not
correctly to handle lower case drive letters.

Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ben Peart <Ben.Peart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-drop-caches.c