fix recent test suite reversion
git annex adjust --force will overwrite any current adjusted branch. I didn't document this because for the user, deleting the branch is just as good.
This commit is contained in:
parent
e394315b67
commit
80b86ff78d
2 changed files with 7 additions and 5 deletions
|
@ -191,7 +191,7 @@ enterAdjustedBranch adj = go =<< originalBranch
|
|||
where
|
||||
go (Just origbranch) = do
|
||||
let adjbranch = adjBranch $ originalToAdjusted origbranch adj
|
||||
ifM (inRepo $ Git.Ref.exists adjbranch)
|
||||
ifM (inRepo (Git.Ref.exists adjbranch) <&&> (not <$> Annex.getState Annex.force))
|
||||
( do
|
||||
mapM_ (warning . unwords)
|
||||
[ [ "adjusted branch"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue