summaryrefslogtreecommitdiff
path: root/Annex/Branch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-07 17:31:30 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-07 17:36:30 -0400
commitb68b110dda6db2917a418b24ce7372aca6307fd1 (patch)
tree1c210a9738a23bff3b25a72fd8a7c738215446a8 /Annex/Branch.hs
parent1acc9824905411220c0fa1921ab2456a52e6b491 (diff)
Only look at reflogs for relevant branches, not for git-annex branches
This speeds it up quite a bit.. May still be too slow in large repos.
Diffstat (limited to 'Annex/Branch.hs')
-rw-r--r--Annex/Branch.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs
index df1412af5..5436132d8 100644
--- a/Annex/Branch.hs
+++ b/Annex/Branch.hs
@@ -210,7 +210,7 @@ getHistorical :: RefDate -> FilePath -> Annex String
getHistorical date file =
-- This check avoids some ugly error messages when the reflog
-- is empty.
- ifM (null <$> inRepo (Git.RefLog.get' [Param "-n1"] (Just fullname)))
+ ifM (null <$> inRepo (Git.RefLog.get' [Param (fromRef fullname), Param "-n1"]))
( error ("No reflog for " ++ fromRef fullname)
, getRef (Git.Ref.dateRef fullname date) file
)