mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Skip bootstrap for all methods of tip hash determination
This commit is contained in:
parent
d61510c3d8
commit
4c689576dc
@ -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 New Issue
Block a user