From 685e6766a75c33f569b17f39404ebc121f6b2554 Mon Sep 17 00:00:00 2001 From: Eoin McAfee Date: Thu, 17 Jun 2021 11:17:04 +0100 Subject: [PATCH] fix issue with kicking off builds using bitbucket server --- service/commit/commit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/commit/commit.go b/service/commit/commit.go index bf5fd89f..2f45a4ea 100644 --- a/service/commit/commit.go +++ b/service/commit/commit.go @@ -79,6 +79,7 @@ func (s *service) FindRef(ctx context.Context, user *core.User, repo, ref string switch s.client.Driver { case scm.DriverBitbucket: + case scm.DriverStash: ref = scm.TrimRef(ref) branch, _, err := s.client.Git.FindBranch(ctx, repo, ref) // wont work for a Tag if err != nil {