aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-10-15 11:28:12 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2018-10-15 11:28:12 +0200
commit529f8438980a29999ca44f3a3e74eb317d0cf3c5 (patch)
treecf10e219b04894676136916edd43d3a446add3be /repository.go
parent2eb97fb44707bc122c53bf2ad8eaf24ad8d679f4 (diff)
downloadgo-git-529f8438980a29999ca44f3a3e74eb317d0cf3c5.tar.gz
use remote name in fetch while clone, test
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.go b/repository.go
index 2479666..2d20f49 100644
--- a/repository.go
+++ b/repository.go
@@ -519,7 +519,7 @@ func (r *Repository) clone(ctx context.Context, o *CloneOptions) error {
}
ref, err := r.fetchAndUpdateReferences(ctx, &FetchOptions{
- RefSpecs: r.cloneRefSpec(o, c),
+ RefSpecs: r.cloneRefSpec(o, c),
Depth: o.Depth,
Auth: o.Auth,
Progress: o.Progress,