Propagate --force to git-annex transferrer
And other child processes.
This commit is contained in:
parent
7d4045277a
commit
f7404a64c0
3 changed files with 8 additions and 1 deletions
|
@ -85,7 +85,11 @@ gitAnnexChildProcess subcmd ps f a = do
|
|||
gitAnnexChildProcessParams :: String -> [CommandParam] -> Annex [CommandParam]
|
||||
gitAnnexChildProcessParams subcmd ps = do
|
||||
cps <- gitAnnexGitConfigOverrides
|
||||
return (Param subcmd : cps ++ ps)
|
||||
force <- Annex.getRead Annex.force
|
||||
let cps' = if force
|
||||
then Param "--force" : cps
|
||||
else cps
|
||||
return (Param subcmd : cps' ++ ps)
|
||||
|
||||
gitAnnexGitConfigOverrides :: Annex [CommandParam]
|
||||
gitAnnexGitConfigOverrides = concatMap (\c -> [Param "-c", Param c])
|
||||
|
|
|
@ -6,6 +6,7 @@ git-annex (10.20240702) UNRELEASED; urgency=medium
|
|||
git-annex remotedaemon is killed while locking a key to prevent its
|
||||
removal.
|
||||
* Added a dependency on clock.
|
||||
* Propagate --force to git-annex transferrer.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Tue, 02 Jul 2024 12:14:53 -0400
|
||||
|
||||
|
|
|
@ -4,3 +4,5 @@ setting, the message displayed says that --force will override the check.
|
|||
But that doesn't work in this case.
|
||||
|
||||
The --force option should be propagated to this command. --[[Joey]]
|
||||
|
||||
> [[fixed|done]] --[[Joey]]
|
||||
|
|
Loading…
Reference in a new issue