reinject --known: Avoid second, unncessary checksum of file.

This commit is contained in:
Joey Hess 2016-11-07 12:07:36 -04:00
parent 5343544822
commit 5afc2eaa54
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
3 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,19 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2016-11-07T16:02:28Z"
content="""
What turns out to have been going on here is the file was first checksummed
silently to get the key and see if it is --known,
and then checksummed a second time (with the message displayed) as part of
the reinject process.
So, the second checksum is not needed in --known mode and I've made it not
be done.
It might be that the "(checksum)" message should be displayed during the
intial checksum of the file. git-annex used to always say when it
checksummed, but [[!commit 64160a96795d03ee791faa4757057200934687bc]] got
rid of that in most cases. I guess that "reinject bigfile <13 minute wait> ok"
is acceptable output though.
"""]]