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 27d043b..4a5efa2 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)