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

"Failed to execute git" error appears in status bar when opening status.magit #317

Open
tdksk opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@tdksk
Copy link

tdksk commented Nov 20, 2024

Description

When opening the status screen (status.magit), a "Failed to execute git" message appears in the status bar.

I've confirmed that this error occurs when branch.main.rebase and branch.main.pushRemote configurations are not set in git config.

Reproduction

  • This issue reproduces in version 0.6.64
  • Does not reproduce in version 0.6.62

Error Messages

The Git output shows the following error messages:

2024-11-20 16:00:51.599 [info] > git config --local branch.main.rebase [4ms]
2024-11-20 16:00:51.599 [warning] [Git][config] git config failed: Failed to execute git
2024-11-20 16:00:51.603 [info] > git config --local branch.main.pushRemote [3ms]
2024-11-20 16:00:51.604 [warning] [Git][config] git config failed: Failed to execute git

Expected Behavior

The status screen should open without any git execution errors, even when these git config settings are not present.

Additional Information

The error appears specifically when trying to access git config settings for branch.main.rebase and branch.main.pushRemote. These settings are optional and should not cause execution errors when not set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant