Skip to content

Commit

Permalink
Wrapped CheckoutIndex with Dst check
Browse files Browse the repository at this point in the history
Lets make sure Repository.Dst is not an empty string before
we run CheckoutIndex.
  • Loading branch information
retr0h committed Aug 15, 2018
1 parent 29ac1bf commit a51f1ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ func (r *Repositories) Overlay() error {
}

// Checkout into repository.Dst.
if err := g.CheckoutIndex(repository); err != nil {
return err
if repository.Dst != "" {
if err := g.CheckoutIndex(repository); err != nil {
return err
}
}
}

Expand Down

0 comments on commit a51f1ed

Please sign in to comment.