diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-04 12:29:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 12:29:00 +0100 |
commit | 3a85c05bcf82ac4a6d48165bd644d81622fae80a (patch) | |
tree | 05f3d41ca6aa6d170dd61298f1d2fd047412ca78 /repository.go | |
parent | 3f7fbc6c49e50eb22e3de8a5143817fa7c0c54dd (diff) | |
download | go-git-3a85c05bcf82ac4a6d48165bd644d81622fae80a.tar.gz |
utils: fs, new memory filesystem (#108)
* utils: fs, new memory filesystem
* utils: fs, renamed os.NewOS to os.New
* utils: fs, memory changes requested by @alcortes
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.go b/repository.go index 2e2e57e..cd94159 100644 --- a/repository.go +++ b/repository.go @@ -33,7 +33,7 @@ func NewMemoryRepository() *Repository { // based on a fs.OS, if you want to use a custom one you need to use the function // NewRepository and build you filesystem.Storage func NewFilesystemRepository(path string) (*Repository, error) { - s, err := filesystem.NewStorage(osfs.NewOS(path)) + s, err := filesystem.NewStorage(osfs.New(path)) if err != nil { return nil, err } |