6
0
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:
Grzegorz Dlugoszewski
2020-06-30 21:25:42 +02:00
parent aee6d8209b
commit d964158bf7
5 changed files with 31 additions and 37 deletions

View File

@@ -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),