-
Notifications
You must be signed in to change notification settings - Fork 393
Open
Labels
kind/supportCategorizes issue or PR as a support question.Categorizes issue or PR as a support question.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Description
I have this config option set in my global ~/.gitconfig file:
[clone]
defaultRemoteName = home
Which changes the default remote name to home. However, krew assumes that the default remote name is always going to be origin, due to
Line 75 in efaaa22
| return Exec(dir, "config", "--get", "remote.origin.url") |
This causes most commands to fail:
> kubectl krew install [PACKAGE_NAME_HERE]
failed to retrieve plugin indexes: failed to list the remote URL for index default: command execution failure, output="": exit status 1
It would be better if one of the following were true:
krewwould detect this setting and use the actual remote namekrewdid not use this setting from the global config, perhaps by running with a blank config- The error message was better when
GetRemoteURLreturned empty data
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/supportCategorizes issue or PR as a support question.Categorizes issue or PR as a support question.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.