fork: Allow forking from remotes other than "origin"#564
Merged
bmeneg merged 1 commit intozaquestion:masterfrom Jan 22, 2021
Merged
fork: Allow forking from remotes other than "origin"#564bmeneg merged 1 commit intozaquestion:masterfrom
bmeneg merged 1 commit intozaquestion:masterfrom
Conversation
Collaborator
The fork command can be used in two ways:
1. when passed a namespaced project name (e.g. "SomeGroup/AwesomeProject"),
the project is forked (and optionally cloned)
2. without arguments, the project name is determined from the "origin"
remote in the current repository, forked and added as remote
The second mode currently doesn't work if the repository pointed to by
"origin" doesn't use the Namespace/Project structure gitlab expects.
Support that use case by also picking the second mode when the passed
argument corresponds to an existing remote.
Fixes zaquestion#563
7955c86 to
78cb696
Compare
Codecov Report
@@ Coverage Diff @@
## master #564 +/- ##
==========================================
- Coverage 58.30% 58.16% -0.14%
==========================================
Files 64 64
Lines 4197 4205 +8
==========================================
- Hits 2447 2446 -1
- Misses 1516 1523 +7
- Partials 234 236 +2
Continue to review full report at Codecov.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fork command can be used in two ways:
the project is forked (and optionally cloned)
remote in the current repository, forked and added as remote
The second mode currently doesn't work if the repository pointed to by
"origin" doesn't use the Namespace/Project structure gitlab expects.
Support that use case by also picking the second mode when the passed
argument corresponds to an existing remote.
Fixes #563