Skip to content

Commit

Permalink
fix adding empty gitref to master
Browse files Browse the repository at this point in the history
  • Loading branch information
redradrat committed Oct 17, 2020
1 parent e7afcd6 commit cc41b4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ func AddRepository(repo Repository) RegistryModification {
if registry.Repositories == nil {
registry.Repositories = Repositories{}
}
if repo.GitRef == "" {
repo.GitRef = "refs/heads/master"
}
repo.URL = trimUrl(repo.URL)
registry.Repositories[repo.Name] = repo
return registry
Expand Down

0 comments on commit cc41b4c

Please sign in to comment.