Skip bootstrap for all methods of tip hash determination

This commit is contained in:
Mustafa Gezen 2021-04-28 10:41:35 +02:00
parent d61510c3d8
commit 4c689576dc
1 changed files with 8 additions and 0 deletions

View File

@ -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()
}