()
| 25 | } |
| 26 | |
| 27 | func newGoGitGlobalConfig() *goGitConfig { |
| 28 | // TODO: replace that with go-git native implementation once it's supported |
| 29 | // see: https://github.com/go-git/go-git |
| 30 | // see: https://github.com/src-d/go-git/issues/760 |
| 31 | |
| 32 | return &goGitConfig{ |
| 33 | ConfigRead: &goGitConfigReader{getConfig: func() (*config.Config, error) { |
| 34 | return config.LoadConfig(config.GlobalScope) |
| 35 | }}, |
| 36 | ConfigWrite: &configPanicWriter{}, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | var _ ConfigRead = &goGitConfigReader{} |
| 41 |