rmuslimov / browse-at-remote

Browse target page on github/bitbucket from emacs buffers
232 stars 53 forks source link

`apply: Wrong number of arguments: #<subr cons>, 1` when tracking local branches #69

Closed terlar closed 1 year ago

terlar commented 4 years ago

If you are tracking a local branch (remote = .) the command fails with the following error:

apply: Wrong number of arguments: #<subr cons>, 1

This is due to the remote-and-branch being just master for example instead of origin/master.

This happens if you use the configuration autosetupmerge = always and do a git checkout -b newbranch. Then it will track whatever branch you branched of from.

Not sure how this should be tackled, but perhaps use the remote for the local branch you target.

zenspider commented 2 years ago

I'm getting hit by this as well.. in my case "main\n"... it's bad enough I might need to turn the config off until this bug is figured out.

Config for one of my branches set up this way:

[branch "zenspider/sabotage_count"]
    remote = .
    merge = refs/heads/main
    rebase = true