diff --git a/Branch.hs b/Branch.hs index 5008b2e200..15681e6993 100644 --- a/Branch.hs +++ b/Branch.hs @@ -331,7 +331,7 @@ getJournalFilesRaw = do g <- Annex.gitRepo fs <- liftIO $ catch (getDirectoryContents $ gitAnnexJournalDir g) (const $ return []) - return $ filter (\f -> f /= "." && f /= "..") fs + return $ filter (`notElem` [".", ".."]) fs {- Stages all journal files into the index, and returns True if the index - was modified. -}