diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-29 02:27:16 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-29 22:36:15 +0100 |
commit | acb1dc80d93f45a055b14903679abca3a6e994f6 (patch) | |
tree | a7e29fd677bb5c11df85fca1fcb6d015bc40fa7b /examples/open | |
parent | 352170d1bf8cc7b32b85d8a2740eb3627e952a6e (diff) | |
download | go-git-acb1dc80d93f45a055b14903679abca3a6e994f6.tar.gz |
example: using new constructors
Diffstat (limited to 'examples/open')
-rw-r--r-- | examples/open/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/open/main.go b/examples/open/main.go index 90fd406..1a9ea64 100644 --- a/examples/open/main.go +++ b/examples/open/main.go @@ -13,7 +13,7 @@ func main() { path := os.Args[1] // We instance a new repository targeting the given path (the .git folder) - r, err := git.NewFilesystemRepository(path) + r, err := git.PlainOpen(path) CheckIfError(err) // Length of the HEAD history |