aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-02-21 16:03:39 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-02-21 16:03:39 +0100
commited288b30de1ac3dcb3ce675c4b9af89eb4e6fcba (patch)
tree6eb908b839d6c225d95691d91e3d5ef5220f54c1 /repository.go
parentd6a6decd1be0515faf36256ce06c58c7d662bbd0 (diff)
downloadgo-git-ed288b30de1ac3dcb3ce675c4b9af89eb4e6fcba.tar.gz
documentation and API improvements
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/repository.go b/repository.go
index 9969b86..c065a26 100644
--- a/repository.go
+++ b/repository.go
@@ -332,13 +332,11 @@ func (r *Repository) clone(o *CloneOptions) error {
Progress: o.Progress,
})
if err != nil {
-
return err
}
head, err := storer.ResolveReference(remoteRefs, o.ReferenceName)
if err != nil {
-
return err
}
@@ -350,7 +348,7 @@ func (r *Repository) clone(o *CloneOptions) error {
return err
}
- if o.RecurseSubmodules != NoRecursivity && r.wt != nil {
+ if o.RecurseSubmodules != NoRecurseSubmodules && r.wt != nil {
if err := r.updateSubmodules(o.RecurseSubmodules); err != nil {
return err
}
@@ -553,7 +551,7 @@ func (r *Repository) Pull(o *PullOptions) error {
return err
}
- if o.RecurseSubmodules != NoRecursivity && r.wt != nil {
+ if o.RecurseSubmodules != NoRecurseSubmodules && r.wt != nil {
if err := r.updateSubmodules(o.RecurseSubmodules); err != nil {
return err
}