Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fork: Allow forking from remotes other than "origin"
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 #563
- Loading branch information