Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-codefresh committed Jun 8, 2021
1 parent 5ba8ae6 commit c72143f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ func (o *CloneOptions) Clone(ctx context.Context) (Repository, fs.FS, error) {
return nil, nil, ErrNoParse
}

if o.Progress == nil {
o.Progress = os.Stderr
}

r, err := clone(ctx, o)
if err != nil {
if err == transport.ErrEmptyRemoteRepository {
Expand Down Expand Up @@ -199,6 +195,10 @@ var clone = func(ctx context.Context, opts *CloneOptions) (*repo, error) {
return nil, ErrNilOpts
}

if opts.Progress == nil {
opts.Progress = os.Stderr
}

cloneOpts := &gg.CloneOptions{
URL: opts.url,
Auth: getAuth(opts.Auth),
Expand Down

0 comments on commit c72143f

Please sign in to comment.