diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-24 09:15:42 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-24 09:15:42 +0200 |
commit | 936faa404ef02c88bde6a62663a6e1a4831c1fb3 (patch) | |
tree | 349c5cf135709e6b2d23556e2db6570b5e199a53 | |
parent | 568154cab87659b31c751678c7f7dc93fedf60af (diff) | |
download | go-git-936faa404ef02c88bde6a62663a6e1a4831c1fb3.tar.gz |
Revert "Merge pull request #31 from lcostea/liviu/add_save_config_changes"
This reverts commit 53f87846a196c856e00fe825bc5f29551b2ea524, reversing
changes made to bb3a1bfcc62224001d577b933355661259b80854.
-rw-r--r-- | _examples/config/main.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/_examples/config/main.go b/_examples/config/main.go index 7c5592f..6ccc9f6 100644 --- a/_examples/config/main.go +++ b/_examples/config/main.go @@ -58,10 +58,6 @@ func main() { // Get custom config param (merged in the same way git does: system -> global -> local) Info("custom.name is %s", cfg.Merged.Section("custom").Option("name")) - //In order to save the config file, you need to call SetConfig - //After calling this go to .git/config and see the custom.name added and the changes to the remote - r.Storer.SetConfig(cfg) - // Get system config params (/etc/gitconfig) systemSections := cfg.Merged.SystemConfig().Sections for _, ss := range systemSections { |