Fix: Allow for override of repo using OWNER/REPO
Created by: zemzale
Description
When using flags/commands that override the repo, but don't supply
hostname, we allways fallback to gitlab.com
. This is a problem for
commands like mr checkout 12 -R OWNER/REPO
that should use API host
self-hosted
, but actually use gitlab.com
.
Now we override default host, from the base repo, if one is found. Environment values still override repo host.
Related Issue Resolves #383 (closed)
How Has This Been Tested?
Locally tried to checkout mr using mr checkout 12 -R ONWER/REPO
, on self hosted instance and everything worked.
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)