aboutsummaryrefslogtreecommitdiffstats
path: root/examples/open
diff options
context:
space:
mode:
Diffstat (limited to 'examples/open')
-rw-r--r--examples/open/main.go2
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