mirror of
https://github.com/harness/drone.git
synced 2025-05-17 01:20:13 +08:00
Merge pull request #3092 from drone/defect/bitbucket-server-build-issue
Defect/bitbucket server build issue
This commit is contained in:
commit
0ec6dd988f
@ -79,6 +79,7 @@ func (s *service) FindRef(ctx context.Context, user *core.User, repo, ref string
|
|||||||
|
|
||||||
switch s.client.Driver {
|
switch s.client.Driver {
|
||||||
case scm.DriverBitbucket:
|
case scm.DriverBitbucket:
|
||||||
|
case scm.DriverStash:
|
||||||
ref = scm.TrimRef(ref)
|
ref = scm.TrimRef(ref)
|
||||||
branch, _, err := s.client.Git.FindBranch(ctx, repo, ref) // wont work for a Tag
|
branch, _, err := s.client.Git.FindBranch(ctx, repo, ref) // wont work for a Tag
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user