aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-09-04 13:54:02 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-09-04 13:54:02 +0200
commit7cdc44306dd1b3bba4a219bf3c40c5097a505a8e (patch)
tree2a6300e33f07f54cb1f7756100386430215a11d7 /repository.go
parent38b9d5711a0d8156a5b5b1e5dd9972558b1389a7 (diff)
downloadgo-git-7cdc44306dd1b3bba4a219bf3c40c5097a505a8e.tar.gz
Repository.Clone added Tags option, and set by default AllTags as git does
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/repository.go b/repository.go
index fbc7871..b86054f 100644
--- a/repository.go
+++ b/repository.go
@@ -440,6 +440,7 @@ func (r *Repository) clone(ctx context.Context, o *CloneOptions) error {
Depth: o.Depth,
Auth: o.Auth,
Progress: o.Progress,
+ Tags: o.Tags,
}, o.ReferenceName)
if err != nil {
return err