krew fails to work if defaultRemoteName
is assigned in ~/.gitconfig
#853
Labels
kind/support
Categorizes issue or PR as a support question.
defaultRemoteName
is assigned in ~/.gitconfig
#853
I have this config option set in my global ~/.gitconfig file:
Which changes the default remote name to
home
. However,krew
assumes that the default remote name is always going to beorigin
, due tokrew/internal/gitutil/git.go
Line 75 in efaaa22
This causes most commands to fail:
It would be better if one of the following were true:
krew
would detect this setting and use the actual remote namekrew
did not use this setting from the global config, perhaps by running with a blank configGetRemoteURL
returned empty dataThe text was updated successfully, but these errors were encountered: