From 16fd63b06f74c0a7299d0721f5e7f4521ee81e11 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Thu, 2 Jan 2025 12:39:50 +1100 Subject: [PATCH] Fixed hardcoded target and remove abbreviated ref --- services.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services.go b/services.go index 218a0b3..3a55d65 100644 --- a/services.go +++ b/services.go @@ -70,7 +70,7 @@ func (s *Services) PushRepository() error { sourceBranch := s.cfg.LocalBranch if sourceBranch == "" { // Get the current ref - ref, err := runCmdExpectingOutput("git", "rev-parse", "--abbrev-ref", "HEAD") + ref, err := runCmdExpectingOutput("git", "rev-parse", "HEAD") if err != nil { return err } @@ -79,7 +79,7 @@ func (s *Services) PushRepository() error { } remoteBranch := s.cfg.RemoteBranch if remoteBranch == "" { - remoteBranch = sourceBranch + remoteBranch = "main" } branchArg := sourceBranch