summaryrefslogtreecommitdiff
path: root/Annex/Branch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-07 17:13:50 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-07 17:13:50 -0400
commit986b2eb33a8a973cc0690e4dfed0f5b50d0719f9 (patch)
tree519bb536f18287c8be890aaad6e6ef93639c8825 /Annex/Branch.hs
parentcfb055f838da0c51a50224bf759b42fb263dcfec (diff)
unused: --used-refspec can now be configured to look at refs in the reflog. This provides a way to not consider old versions of files to be unused after they have reached a specified age, when the old refs in the reflog expire.
May be slow.
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 c6c9b9949..df1412af5 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"] fullname))
+ ifM (null <$> inRepo (Git.RefLog.get' [Param "-n1"] (Just fullname)))
( error ("No reflog for " ++ fromRef fullname)
, getRef (Git.Ref.dateRef fullname date) file
)