Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push hangs infinitely when is push_menu.push configured #315

Open
TLINDEN opened this issue Feb 13, 2025 · 1 comment
Open

push hangs infinitely when is push_menu.push configured #315

TLINDEN opened this issue Feb 13, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@TLINDEN
Copy link

TLINDEN commented Feb 13, 2025

Hi,

the default keys for push are Pp (P => push menu, p => actual push). This works as it should.

But when you configure the push key binding like this:

push_menu.push = ["p"]

... then push hangs forever with any repo. There's no error message whatsoever. However, it still responds to the q key to quit.

The same behavior can be witnessed, when you configure any other key for push_menu.push. Also, the changed key binding is not being displayed in the menu, it shows p even if - say - f is configured.

It ONLY works, if you don't touch that setting.

best regards,
Tom

@altsem
Copy link
Owner

altsem commented Feb 13, 2025

@TLINDEN I think I understand what is happening here.

push_menu.push = ["p"] this option has been removed in favor of:

push_menu.push_to_push_remote = ["p"]
push_menu.push_to_upstream = ["u"]

As well as for pulling:

pull_menu.pull_from_push_remote = ["p"]
pull_menu.pull_from_upstream = ["u"]

-which now is more akin to how Magit works.

Migrating to the new ones should fix the issues.

It seems that your binding take precedence over the default "push_to_push_remote" and Gitu does absolutely nothing. (I noticed I was still able to change flags/quit/run other commands in the menu).

Definitely strange behavior and should be fixed.
Perhaps there should be some validation on the config.

@altsem altsem added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants