can't checkout adjusted branch while index is still locked
There's a race here, but entering an adjusted branch for the first time is not something to do when a commit is being made at the same time. Although, may want to prevent the assistant from committing while entering the adjusted branch.
This commit is contained in:
parent
6024108ab2
commit
91f37673df
2 changed files with 11 additions and 2 deletions
|
@ -91,8 +91,8 @@ originalBranch = fmap fromAdjustedBranch <$> inRepo Git.Branch.current
|
|||
enterAdjustedBranch :: Adjustment -> Annex ()
|
||||
enterAdjustedBranch adj = go =<< originalBranch
|
||||
where
|
||||
go (Just origbranch) = preventCommits $ do
|
||||
adjbranch <- adjustBranch adj origbranch
|
||||
go (Just origbranch) = do
|
||||
adjbranch <- preventCommits $ adjustBranch adj origbranch
|
||||
inRepo $ Git.Command.run
|
||||
[ Param "checkout"
|
||||
, Param $ fromRef $ Git.Ref.base $ adjbranch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue