fix: set tracking branch only if not set
Created by: maxice8
Description
Split git.SetUpstream
out of git.Push
, the latter no longer runs with --set-upstream
as to avoid overriding the tracking branch set by the user. Instead we set it with git.SetUpstream
if none is set
Related Issue
Resolves #406 (closed)
How Has This Been Tested?
Creating MRs on gitlab.alpinelinux.org, it doesn't override my tracking branches but more testing would be nice before merging.
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)