aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/clone
diff options
context:
space:
mode:
Diffstat (limited to '_examples/clone')
-rw-r--r--_examples/clone/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/_examples/clone/main.go b/_examples/clone/main.go
index 3b24af2..1952e76 100644
--- a/_examples/clone/main.go
+++ b/_examples/clone/main.go
@@ -28,7 +28,7 @@ func main() {
ref, err := r.Head()
CheckIfError(err)
// ... retrieving the commit object
- commit, err := r.Commit(ref.Hash())
+ commit, err := r.CommitObject(ref.Hash())
CheckIfError(err)
fmt.Println(commit)