Skip to content

Commit

Permalink
Use remote name in fetch while clone
Browse files Browse the repository at this point in the history
Fixes src-d#827

Signed-off-by: Dustin Frisch <[email protected]>
  • Loading branch information
fooker committed May 9, 2018
1 parent 47417ae commit 2eb97fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2eb97fb

Please sign in to comment.