aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go
index fc4cd28..b5132ac 100644
--- a/config/config.go
+++ b/config/config.go
@@ -64,11 +64,15 @@ type Config struct {
// NewConfig returns a new empty Config.
func NewConfig() *Config {
- return &Config{
+ config := &Config{
Remotes: make(map[string]*RemoteConfig),
Submodules: make(map[string]*Submodule),
Raw: format.New(),
}
+
+ config.Pack.Window = defaultPackWindow
+
+ return config
}
// Validate validates the fields and sets the default values.