Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 2eb97fb

Browse files
committed
Use remote name in fetch while clone
Fixes #827 Signed-off-by: Dustin Frisch <[email protected]>
1 parent 47417ae commit 2eb97fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

repository.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,11 @@ func (r *Repository) clone(ctx context.Context, o *CloneOptions) error {
520520

521521
ref, err := r.fetchAndUpdateReferences(ctx, &FetchOptions{
522522
RefSpecs: r.cloneRefSpec(o, c),
523-
Depth: o.Depth,
524-
Auth: o.Auth,
525-
Progress: o.Progress,
526-
Tags: o.Tags,
523+
Depth: o.Depth,
524+
Auth: o.Auth,
525+
Progress: o.Progress,
526+
Tags: o.Tags,
527+
RemoteName: o.RemoteName,
527528
}, o.ReferenceName)
528529
if err != nil {
529530
return err

0 commit comments

Comments
 (0)