summaryrefslogtreecommitdiff
path: root/Branch.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Branch.hs')
-rw-r--r--Branch.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Branch.hs b/Branch.hs
index 5008b2e20..15681e699 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. -}