diff options
-rw-r--r-- | repository.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/repository.go b/repository.go index 717381b..2479666 100644 --- a/repository.go +++ b/repository.go @@ -520,10 +520,11 @@ 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, + Depth: o.Depth, + Auth: o.Auth, + Progress: o.Progress, + Tags: o.Tags, + RemoteName: o.RemoteName, }, o.ReferenceName) if err != nil { return err |