Skip to content

Inconsistencies in "remote" and "branch" variables #1358

@xicod

Description

@xicod

If I'm not mistaken, following this commit 3c2cdb4 the %(branch) variable is now empty for commits that are not directly referenced.
So I had this key binding:

bind main P !git push %(remote) %(commit):%(branch)

That now stopped working.
I've changed %(branch) to %(repo:head) and got it to work again.
What I don't understand is why %(remote) is still set?
I would expect to use %(repo:remote) instead, but that is set to 'origin/master' instead of the expected 'origin' and git fails to push.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions