aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-15 21:43:03 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-15 21:43:03 +0200
commit4c6e65190f48f0a7558718d239ffb23ee59580ac (patch)
tree9122d079188b2508b929f99c18cf97773744471b
parentbcb49927a3897eadc29960032c70da29e26d6b58 (diff)
downloadgo-git-4c6e65190f48f0a7558718d239ffb23ee59580ac.tar.gz
examples: fix
-rw-r--r--examples/latest/latest.go2
-rw-r--r--examples/object_storage/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/latest/latest.go b/examples/latest/latest.go
index 684ebb7..de927fa 100644
--- a/examples/latest/latest.go
+++ b/examples/latest/latest.go
@@ -16,7 +16,7 @@ func main() {
panic(err)
}
- if err = r.Clone(&git.CloneOptions{URL: url}); err != nil {
+ if err = r.Clone(&git.RepositoryCloneOptions{URL: url}); err != nil {
panic(err)
}
diff --git a/examples/object_storage/main.go b/examples/object_storage/main.go
index 22fa426..d3818e0 100644
--- a/examples/object_storage/main.go
+++ b/examples/object_storage/main.go
@@ -38,7 +38,7 @@ func clone(r *git.Repository, url string) {
fmt.Printf("Cloning %q ...\n", os.Args[2])
start := time.Now()
- if err := r.Clone(&git.CloneOptions{URL: url}); err != nil {
+ if err := r.Clone(&git.RepositoryCloneOptions{URL: url}); err != nil {
panic(err)
}