mislav / hub

A command-line tool that makes git easier to use with GitHub.

Home Page:https://hub.github.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unknown option in fish completion

jiegec opened this issue · comments

commented

Command attempted:

hub status

What happened:

It prints the following message:

~> git scomplete: --file: unknown option

~/.nix-profile/share/fish/vendor_completions.d/hub.fish (line 52):
complete -f -c hub -n ' __fish_hub_using_command pull-request' -s F --file -d "Read the pull request title and description from <FILE>"
^
from sourcing file ~/.nix-profile/share/fish/vendor_completions.d/hub.fish

(Type 'help complete' for related documentation)
t                            stc^C

More info:

Hub version:

git version 2.37.1
hub version 2.14.2

Fish version: 3.5.1

Relevant code: https://github.com/github/hub/blob/c8e68d548a39ec0fab6f674a669c21b54d4eec61/etc/hub.fish_completion#L52

Hsjwjs

Can confirm, reproduced it on my machine.
Quick fix would be to remove either F or --file option from
complete -f -c hub -n ' __fish_hub_using_command pull-request' -s F --file -d "Read the pull request title and description from <FILE>" in hub.fish

Probably caused by a typo in #2502