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.
This commit is contained in:
Joey Hess 2011-07-07 17:04:21 -04:00
parent b5733069db
commit 2fb771f135
2 changed files with 4 additions and 1 deletions

View file

@ -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

3
debian/changelog vendored
View file

@ -1,6 +1,9 @@
git-annex (3.20110706) UNRELEASED; urgency=low
* Fix sign bug in disk free space checking.
* 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.)
-- Joey Hess <joeyh@debian.org> Tue, 05 Jul 2011 20:52:11 -0400