aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/config/section.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/config/section.go')
-rw-r--r--plumbing/format/config/section.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/config/section.go b/plumbing/format/config/section.go
index eeefe84..4a17e3b 100644
--- a/plumbing/format/config/section.go
+++ b/plumbing/format/config/section.go
@@ -134,8 +134,8 @@ func (s *Subsection) AddOption(key string, value string) *Subsection {
// SetOption adds a new Option to the Subsection. If the option already exists, is replaced.
// The updated Subsection is returned.
-func (s *Subsection) SetOption(key string, value string) *Subsection {
- s.Options = s.Options.withSettedOption(key, value)
+func (s *Subsection) SetOption(key string, value ...string) *Subsection {
+ s.Options = s.Options.withSettedOption(key, value...)
return s
}