mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-06 00:20:56 +00:00
Skip bootstrap for all methods of tip hash determination
This commit is contained in:
parent
d61510c3d8
commit
4c689576dc
1 changed files with 8 additions and 0 deletions
|
@ -207,6 +207,10 @@ func getTipStream(pd *data.ProcessData, module string, pushBranch string, origPu
|
|||
|
||||
if tipHash == "" {
|
||||
for _, ref := range list {
|
||||
if strings.Contains(ref.Name().String(), "-bootstrap") {
|
||||
continue
|
||||
}
|
||||
|
||||
prefix := fmt.Sprintf("refs/heads/%s", origPushBranch)
|
||||
|
||||
if strings.HasPrefix(ref.Name().String(), prefix) {
|
||||
|
@ -217,6 +221,10 @@ func getTipStream(pd *data.ProcessData, module string, pushBranch string, origPu
|
|||
|
||||
if tipHash == "" {
|
||||
for _, ref := range list {
|
||||
if strings.Contains(ref.Name().String(), "-bootstrap") {
|
||||
continue
|
||||
}
|
||||
|
||||
if !strings.Contains(ref.Name().String(), "stream") {
|
||||
tipHash = ref.Hash().String()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue