annex.tune.branchhash1=true bugfix

Fix support for repositories tuned with annex.tune.branchhash1=true,
including --all not working and git-annex log not displaying anything for
annexed files.
This commit is contained in:
Joey Hess 2020-02-14 15:22:48 -04:00
parent c265cf27a0
commit 879f52a116
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
9 changed files with 61 additions and 23 deletions

View file

@ -87,3 +87,5 @@ Repository status:
Of course, I love it! Great project, thanks, Joey!
However, /me always wants more features from it. It's great that git-annex continues to develop.
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2020-02-14T19:01:50Z"
content="""
Indeed this is a bug. Easy to see why, note that "3":
locationLogFileKey path
-- Want only xx/yy/foo.log, not .log files in other places.
| length (splitDirectories (fromRawFilePath path)) /= 3 = Nothing
So this also affected some other things that use that. Including `git-annex log`,
potentially something to do with v2 upgrade (if a v2 repo could be tuned this way?),
and handling transitions set up by `git annex forget`.
(I also checked if annex.tune.objecthash1 similarly broke stuff that
enumerated .git/annex/objects, but that was handled ok already.)
"""]]