diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-02 15:30:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-02 15:30:38 -0700 |
commit | 5e98080188f2ef8034947b5c341371e1dfb6c2aa (patch) | |
tree | 52d62698e90758d9bd3816e3f2eca0ac252b3300 /t/helper | |
parent | Merge branch 'jk/has-uncommitted-changes-fix' (diff) | |
parent | handle lower case drive letters on Windows (diff) | |
download | tgif-5e98080188f2ef8034947b5c341371e1dfb6c2aa.tar.xz |
Merge branch 'bp/test-drop-caches-for-windows'
A test helper update for Windows.
* bp/test-drop-caches-for-windows:
handle lower case drive letters on Windows
Diffstat (limited to 't/helper')
-rw-r--r-- | t/helper/test-drop-caches.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-drop-caches.c b/t/helper/test-drop-caches.c index d6bcfddf13..f65e301f9d 100644 --- a/t/helper/test-drop-caches.c +++ b/t/helper/test-drop-caches.c @@ -16,8 +16,8 @@ static int cmd_sync(void) if ((0 == dwRet) || (dwRet > MAX_PATH)) return error("Error getting current directory"); - if ((Buffer[0] < 'A') || (Buffer[0] > 'Z')) - return error("Invalid drive letter '%c'", Buffer[0]); + if (!has_dos_drive_prefix(Buffer)) + return error("'%s': invalid drive letter", Buffer); szVolumeAccessPath[4] = Buffer[0]; hVolWrite = CreateFile(szVolumeAccessPath, GENERIC_READ | GENERIC_WRITE, |