From 1845c0bf9c3b77c52484ee4e7f9b15f7eab6edce Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 9 Aug 2016 14:19:43 -0600 Subject: [PATCH] config: ensure .gitconfig is loaded before Unmarshal call --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index a8750547..43abc5f8 100644 --- a/config/config.go +++ b/config/config.go @@ -131,6 +131,8 @@ func NewFrom(v Values) *Configuration { // Otherwise, the field will be set to the value of calling the // appropriately-typed method on the specified environment. func (c *Configuration) Unmarshal(v interface{}) error { + c.loadGitConfig() + into := reflect.ValueOf(v) if into.Kind() != reflect.Ptr { return fmt.Errorf("lfs/config: unable to parse non-pointer type of %T", v)