From 4c689576dc21dc7947f8064a3245ecca6c6e7b20 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Wed, 28 Apr 2021 10:41:35 +0200 Subject: [PATCH] Skip bootstrap for all methods of tip hash determination --- internal/patch.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/patch.go b/internal/patch.go index 1d15272..e2174b2 100644 --- a/internal/patch.go +++ b/internal/patch.go @@ -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() }