From 834e27580383e4fa74f72e73448f8c5fc3c8e541 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Jan 2015 17:33:29 -0400 Subject: git-hash-object needs absolute files (git bug) A relative path to a file makes it fail. I am pretty sure this is a git bug; workaround it. --- Git/HashObject.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Git/HashObject.hs') diff --git a/Git/HashObject.hs b/Git/HashObject.hs index 97e1befe6..8cd35167d 100644 --- a/Git/HashObject.hs +++ b/Git/HashObject.hs @@ -32,7 +32,7 @@ hashObjectStop = CoProcess.stop hashFile :: HashObjectHandle -> FilePath -> IO Sha hashFile h file = CoProcess.query h send receive where - send to = hPutStrLn to file + send to = hPutStrLn to =<< absPath file receive from = getSha "hash-object" $ hGetLine from {- Injects a blob into git. Unfortunately, the current git-hash-object -- cgit v1.2.3