use --force in taggedPush
This should make the assistant force update its tagged push branch after a transition like git annex forget.
This commit is contained in:
parent
336d5ec349
commit
c181efe437
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ fromTaggedBranch b = case split "/" $ show b of
|
|||
taggedPush :: UUID -> Maybe String -> Git.Ref -> Remote -> Git.Repo -> IO Bool
|
||||
taggedPush u info branch remote = Git.Command.runBool
|
||||
[ Param "push"
|
||||
-- This is safe because we "own" the tagged branch we're pushing;
|
||||
-- it has no other writers. Ensures it is pushed even if it has
|
||||
-- been rewritten by a transition.
|
||||
, Param "--force"
|
||||
, Param $ Remote.name remote
|
||||
, Param $ refspec Annex.Branch.name
|
||||
, Param $ refspec branch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue