diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-22 00:30:50 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-22 00:30:50 +0200 |
commit | 5b13c1a2e55cb442484d9c7b45389f422b110eec (patch) | |
tree | 9be0949cb354dfd6521aa84f4af9e5777c3a1cef /examples/latest | |
parent | f42d82364c5d159f65a48e720433ad2bc97f0b7f (diff) | |
download | go-git-5b13c1a2e55cb442484d9c7b45389f422b110eec.tar.gz |
options renamed and some text fixes
Diffstat (limited to 'examples/latest')
-rw-r--r-- | examples/latest/latest.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/latest/latest.go b/examples/latest/latest.go index de927fa..05f583a 100644 --- a/examples/latest/latest.go +++ b/examples/latest/latest.go @@ -11,12 +11,9 @@ func main() { url := os.Args[1] fmt.Printf("Retrieving latest commit from: %q ...\n", url) - r, err := git.NewMemoryRepository() - if err != nil { - panic(err) - } + r := git.NewMemoryRepository() - if err = r.Clone(&git.RepositoryCloneOptions{URL: url}); err != nil { + if err := r.Clone(&git.CloneOptions{URL: url}); err != nil { panic(err) } |