Fixed hardcoded target and remove abbreviated ref
This commit is contained in:
parent
3f9c10c04b
commit
16fd63b06f
|
@ -70,7 +70,7 @@ func (s *Services) PushRepository() error {
|
||||||
sourceBranch := s.cfg.LocalBranch
|
sourceBranch := s.cfg.LocalBranch
|
||||||
if sourceBranch == "" {
|
if sourceBranch == "" {
|
||||||
// Get the current ref
|
// Get the current ref
|
||||||
ref, err := runCmdExpectingOutput("git", "rev-parse", "--abbrev-ref", "HEAD")
|
ref, err := runCmdExpectingOutput("git", "rev-parse", "HEAD")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ func (s *Services) PushRepository() error {
|
||||||
}
|
}
|
||||||
remoteBranch := s.cfg.RemoteBranch
|
remoteBranch := s.cfg.RemoteBranch
|
||||||
if remoteBranch == "" {
|
if remoteBranch == "" {
|
||||||
remoteBranch = sourceBranch
|
remoteBranch = "main"
|
||||||
}
|
}
|
||||||
|
|
||||||
branchArg := sourceBranch
|
branchArg := sourceBranch
|
||||||
|
|
Loading…
Reference in a new issue