-
Notifications
You must be signed in to change notification settings - Fork 9
Always operates on first origin #67
Description
I have a repository setup with multiple subtrees. Because I added the origins of the subtrees (on gitlab) first and then pushed the new repository to gitlab, lab will operate on the first added remote instead of the real one called "origin".
Some information obfuscated for privacy reasons:
$ git remote -v build_tools git@gitlab.<hidden>/build_tools.git (fetch) build_tools git@gitlab.<hidden>/build_tools.git (push) common_libs git@gitlab.<hidden>/common_libs.git (fetch) common_libs git@gitlab.<hidden>/common_libs.git (push) origin git@gitlab.<hidden>/project.git (fetch) origin git@gitlab.<hiden>/project.git (push)
Any "lab" command will operate on the "build_tools" remote instead of the "origin" remote.
Also, if I remove the build_tools origin, lab will fail with "Not found gitlab remote repository", while there are still 2 remotes on gitlab left.
lab ver: v0.5.3 rev: 5d09e6d
git version 2.19.0