sync: Warn when the adjusted basis ref cannot be found
As happens eg when the user has renamed branches. Sponsored-by: Graham Spencer on Patreon
This commit is contained in:
parent
fb93fbc564
commit
bb4550c7c1
3 changed files with 6 additions and 1 deletions
|
@ -490,7 +490,9 @@ propigateAdjustedCommits' origbranch adj _commitsprevented =
|
|||
, rebase currcommit newparent
|
||||
)
|
||||
Nothing -> return (Nothing, return ())
|
||||
Nothing -> return (Nothing, return ())
|
||||
Nothing -> do
|
||||
warning $ "Cannot find basis ref " ++ fromRef basis ++ "; not propagating adjusted commits to original branch " ++ fromRef origbranch
|
||||
return (Nothing, return ())
|
||||
where
|
||||
(BasisBranch basis) = basisBranch adjbranch
|
||||
adjbranch@(AdjBranch currbranch) = originalToAdjusted origbranch adj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue