diff options
Diffstat (limited to 'Git/Construct.hs')
-rw-r--r-- | Git/Construct.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/Construct.hs b/Git/Construct.hs index ce12f9b66..3c1cfdbdf 100644 --- a/Git/Construct.hs +++ b/Git/Construct.hs @@ -224,7 +224,7 @@ checkForRepo dir = <&&> doesDirectoryExist (dir </> "objects") gitDirFile = do c <- firstLine <$> - catchDefaultIO (readFile $ dir </> ".git") "" + catchDefaultIO "" (readFile $ dir </> ".git") return $ if gitdirprefix `isPrefixOf` c then Just $ Local { gitdir = drop (length gitdirprefix) c |