summaryrefslogtreecommitdiff
path: root/Annex/CatFile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/CatFile.hs')
-rw-r--r--Annex/CatFile.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Annex/CatFile.hs b/Annex/CatFile.hs
index ab7cb2aef..292d62460 100644
--- a/Annex/CatFile.hs
+++ b/Annex/CatFile.hs
@@ -56,7 +56,7 @@ catKey ref = do
{- From a file in git back to the key.
-
- Prefixing the file with ./ makes this work even if in a subdirectory
- - of a repo.
+ - of a repo. For some reason, HEAD is sometimes needed.
-}
catKeyFile :: FilePath -> Annex (Maybe Key)
-catKeyFile f = catKey $ Ref $ ":./" ++ f
+catKeyFile f = catKey $ Ref $ "HEAD:./" ++ f