File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ func initConfig(c *Configuration) {
111
111
//
112
112
// Otherwise, the field will be set to the value of calling the
113
113
// appropriately-typed method on the specified environment.
114
- func ( c * Configuration ) Unmarshal ( v interface {}) error {
114
+ func Unmarshal ( git , os Enviornment , v interface {}) error {
115
115
into := reflect .ValueOf (v )
116
116
if into .Kind () != reflect .Ptr {
117
117
return fmt .Errorf ("lfs/config: unable to parse non-pointer type of %T" , v )
@@ -153,6 +153,10 @@ func (c *Configuration) Unmarshal(v interface{}) error {
153
153
return nil
154
154
}
155
155
156
+ func (c * Configuration ) Unmarshal (v interface {}) error {
157
+ return Unmarshal (c .Git , c .Os , v )
158
+ }
159
+
156
160
var (
157
161
tagRe = regexp .MustCompile ("((\\ w+:\" [^\" ]*\" )\\ b?)+" )
158
162
emptyEnv = EnvironmentOf (MapFetcher (nil ))
You can’t perform that action at this time.
0 commit comments