push: prefer the local branch when selecting a corresponding remote branch
commitc2acbc4ad21e947e551c0dea2f2d70b0fa1e1556
authorDavid Aguilar <davvid@gmail.com>
Thu, 14 Mar 2024 09:26:08 +0000 (14 02:26 -0700)
committerDavid Aguilar <davvid@gmail.com>
Thu, 14 Mar 2024 09:26:33 +0000 (14 02:26 -0700)
treec1bbf7f00a357c906347adf8295e51bec957c814
parentfab868a3c8e4a40fdc7a9fd2bcf9593ae15d8cfc
push: prefer the local branch when selecting a corresponding remote branch

We were using the current branch instead of the local branch field when
finding a corresponding remote branch to select. Correct the behavior by
using the local branch text instead.

Related-to: #729
Suggested-by: @pkzc on github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/widgets/remote.py