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

Fix completion for git bisect visualize #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

christian-heusel
Copy link

When trying to use the completion for git bisect visualize one currently is greeted with the curious error of something like this:

git bisect visualize _git-bisect:89: command not found: arch

While in this case 'arch' is the name of the first folder in the directory. The cause for this is a missing separation of switch cases which we fix by inserting the needed ";;".


In my opinion this is a potentially really nasty bug (although people are unlikely to hit it) since it executes arbitrary binaries depending on the folder the completion is used in.
See the following demonstration:

zsh-completion.mp4

When trying to use the completion for git bisect visualize one currently
is greeted with the curious error of something like this:

    git bisect visualize _git-bisect:89: command not found: arch

While in this case 'arch' is the name of the first folder in the
directory. The cause for this is a missing separation of switch cases
which we fix by inserting the needed ";;".

Signed-off-by: Christian Heusel <christian@heusel.eu>
@christian-heusel christian-heusel force-pushed the fix-git-bisect-visualize-completion branch from 7f2db37 to 833dbc2 Compare May 25, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant