Behavior change: --trust-glacier option no longer overrides trust

Since that can lead to data loss, which should never be enabled by an
option other than --force.

This commit was sponsored by Jake Vosloo on Patreon.
This commit is contained in:
Joey Hess 2021-01-07 10:37:43 -04:00
parent 2bf34fc17f
commit c8b1fa67b4
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 12 additions and 22 deletions

View file

@ -81,9 +81,9 @@ gitAnnexGlobalOptions = commonGlobalOptions ++
<> help "override default User-Agent"
<> hidden
)
, globalFlag (Annex.setFlag "trustglacier")
, globalFlag (toplevelWarning False "--trust-glacier no longer has any effect")
( long "trust-glacier"
<> help "Trust Amazon Glacier inventory"
<> help "deprecated, does not trust Amazon Glacier inventory"
<> hidden
)
, globalFlag (setdesktopnotify mkNotifyFinish)