debug test suite crash on windows

This commit is contained in:
Joey Hess 2025-01-29 16:37:54 -04:00
parent 1b7293fb67
commit 415455883c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -49,6 +49,10 @@ hashFile hdl@(HashObjectHandle h _ _) file = do
-- So, make the filename absolute, which will work now
-- and also if git's behavior later changes.
file' <- absPath file
-- XXX windows crash debugging
#ifndef mingw32_HOST_OS
hPutStrLn stderr $ show ("hashFile called on file", file, "abspath is", file')
#endif
if newline `S.elem` file' || carriagereturn `S.elem` file
then hashFile' hdl file
else CoProcess.query h (send file') receive