diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-10-15 11:32:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 11:32:41 +0200 |
commit | 03810084a0cdb9eb432651979b0784a9fd92736a (patch) | |
tree | f42fdd38eeb25fbbf53fc19b4fd04cd6f7f25124 /repository.go | |
parent | 0bfe038a16551ede1d22bfb54f52c31b646a9e1a (diff) | |
parent | 529f8438980a29999ca44f3a3e74eb317d0cf3c5 (diff) | |
download | go-git-03810084a0cdb9eb432651979b0784a9fd92736a.tar.gz |
Merge pull request #828 from fooker/patch-1
Use remote name in fetch while clone
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/repository.go b/repository.go index 62e22a6..ddf6727 100644 --- a/repository.go +++ b/repository.go @@ -654,11 +654,12 @@ func (r *Repository) clone(ctx context.Context, o *CloneOptions) error { } ref, err := r.fetchAndUpdateReferences(ctx, &FetchOptions{ - RefSpecs: r.cloneRefSpec(o, c), - Depth: o.Depth, - Auth: o.Auth, - Progress: o.Progress, - Tags: o.Tags, + RefSpecs: r.cloneRefSpec(o, c), + Depth: o.Depth, + Auth: o.Auth, + Progress: o.Progress, + Tags: o.Tags, + RemoteName: o.RemoteName, }, o.ReferenceName) if err != nil { return err |