Skip to content

Commit

Permalink
rebase: update the model when using "git cola rebase"
Browse files Browse the repository at this point in the history
Get the completion widget working by ensuring that we've updated our
branches and tags before running the Rebase command.

The Rebase command uses GitRefDialog, which needs the model to have been
refreshed.
  • Loading branch information
davvid committed Apr 19, 2024
1 parent c877d2a commit e445401
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cola/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ def cmd_rebase(args):
'branch': args.branch,
}
context = app.application_init(args)
context.model.update_refs()
status, _, _ = cmds.do(cmds.Rebase, context, **kwargs)
return status

Expand Down

0 comments on commit e445401

Please sign in to comment.