diff options
author | Daniel Martí <mvdan@mvdan.cc> | 2022-05-26 16:24:02 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2022-05-29 16:12:57 +0200 |
commit | bc1f419cebcf7505db31149fa459e9e3f8260e00 (patch) | |
tree | 0a997fdf76f0167692d294505ff3c80a7064a404 /config/config.go | |
parent | 69aa78ab169e8fa5d96561462b0a07aa5030bad6 (diff) | |
download | go-git-bc1f419cebcf7505db31149fa459e9e3f8260e00.tar.gz |
all: replace go-homedir with os.UserHomeDir
Added in Go 1.12, this means we need one less dependency.
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go index 2a196d0..8051bc1 100644 --- a/config/config.go +++ b/config/config.go @@ -15,7 +15,6 @@ import ( "github.com/go-git/go-billy/v5/osfs" "github.com/go-git/go-git/v5/internal/url" format "github.com/go-git/go-git/v5/plumbing/format/config" - "github.com/mitchellh/go-homedir" ) const ( @@ -185,7 +184,7 @@ func Paths(scope Scope) ([]string, error) { files = append(files, filepath.Join(xdg, "git/config")) } - home, err := homedir.Dir() + home, err := os.UserHomeDir() if err != nil { return nil, err } |