diff --git a/pkg/config.go b/pkg/config.go index 16a0166..c83eff0 100644 --- a/pkg/config.go +++ b/pkg/config.go @@ -48,7 +48,7 @@ func (c *Conf) ReposRoot() string { return reposRoot } - if c.gitconfig == nil { + if c == nil || c.gitconfig == nil { return defReposRoot } @@ -72,7 +72,7 @@ func (c *Conf) DefaultHost() string { return defaultHost } - if c.gitconfig == nil { + if c == nil || c.gitconfig == nil { return DefaultHost }