Skip to content

Commit 39eed96

Browse files
committed
Fix for sub-project handling
1 parent fe036ae commit 39eed96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Fancydiff/Lib.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ readMaybeBlob filename hash = do
131131
-- complains the commit hashes not found.
132132
return ""
133133
_ -> E.throw e
134-
Nothing -> E.throw e
134+
Nothing -> do
135+
-- Could be a sub-project not cloned yet.
136+
return ""
135137
E.catch inDb inWorkingDir
136138

137139
highlightSourceInDiffFile :: (MonadGit o m, MonadIO m, MonadBaseControl IO m) => Text -> Text -> DH.DiffHeader -> DH.DiffContent -> m (Maybe F.FList)

0 commit comments

Comments
 (0)