summaryrefslogtreecommitdiff
path: root/LocationLog.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-07-07 17:04:21 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-07-07 17:04:21 -0400
commit2fb771f135ad0a5adec0349a6270cadc518e04f6 (patch)
treedfbc9a75d1101d1a49b0513e62590abedc44f43b /LocationLog.hs
parentb5733069db61dc9e03bc68a9e3aa2a8946cc3dec (diff)
Bugfix: Forgot to de-escape keys when upgrading.
Could result in bad location log data for keys that contain [&:%] in their names. (A workaround for this problem is to run git annex fsck.) `git annex unused --from remote` could also run into the broken code.
Diffstat (limited to 'LocationLog.hs')
-rw-r--r--LocationLog.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LocationLog.hs b/LocationLog.hs
index 28b423e2f..aab817f3f 100644
--- a/LocationLog.hs
+++ b/LocationLog.hs
@@ -60,7 +60,7 @@ logFile key = hashDirLower key ++ keyFile key ++ ".log"
{- Converts a log filename into a key. -}
logFileKey :: FilePath -> Maybe Key
logFileKey file
- | end == ".log" = readKey beginning
+ | end == ".log" = fileKey beginning
| otherwise = Nothing
where
(beginning, end) = splitAt (length file - 4) file