Skip to content

Commit

Permalink
repo: Upgrade: use branch or commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jrotkiewicz committed Oct 8, 2021
1 parent 2c82e98 commit 32a0b39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions newt/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ func (r *Repo) Upgrade(ver newtutil.RepoVersion) error {
return err
}

if branch := r.downloader.MainBranch(); branch != "" {
commit = branch
}

if err := r.updateRepo(commit); err != nil {
return err
}
Expand Down

0 comments on commit 32a0b39

Please sign in to comment.