mirror of
https://github.com/grdl/git-get.git
synced 2026-02-07 01:00:36 +00:00
Fix problems with loading values from gitconfig
This commit is contained in:
@@ -31,10 +31,11 @@ func init() {
|
||||
viper.BindPFlag(cfg.KeyOutput, cmd.PersistentFlags().Lookup(cfg.KeyOutput))
|
||||
viper.BindPFlag(cfg.KeyReposRoot, cmd.PersistentFlags().Lookup(cfg.KeyReposRoot))
|
||||
|
||||
cfg.Init(&git.ConfigGlobal{})
|
||||
}
|
||||
|
||||
func run(cmd *cobra.Command, args []string) error {
|
||||
cfg.Init(&git.ConfigGlobal{})
|
||||
cfg.Expand(cfg.KeyReposRoot)
|
||||
|
||||
config := &pkg.ListCfg{
|
||||
Fetch: viper.GetBool(cfg.KeyFetch),
|
||||
|
||||
Reference in New Issue
Block a user