Propagate Annex.force into the remote's Annex state.
Fixes this problem:
joey@darkstar:~/tmp/xxxx>git-annex copy mmm --to origin --force
copy mmm (to origin...)
not enough free space, need 908.72 MB more (use --force to override this check or adjust annex.diskreserve)
failed to send content to remote
failed
Does beg the question if anything else should be propagated.
Some things like Annex.forcenumcopies certianly not; using --numcopies
overrides the number of copies the current repo wants, not all of them.
Sponsored-by: Graham Spencer on Patreon
setting of a special remote.
* assistant --autostop: Avoid crashing when ~/.config/git-annex/autostart
lists a directory that it cannot chdir to.
+ * Honor --force option when operating on a local git remote.
-- Joey Hess <id@joeyh.name> Sat, 08 Apr 2023 13:57:18 -0400
(st, rd) <- liftIO $ Annex.new repo
debugenabled <- Annex.getRead Annex.debugenabled
debugselector <- Annex.getRead Annex.debugselector
+ force <- Annex.getRead Annex.force
return (st, rd
{ Annex.debugenabled = debugenabled
, Annex.debugselector = debugselector
+ , Annex.force = force
})
onLocal' :: LocalRemoteAnnex -> Annex a -> Annex a