Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Add remoteName flag to glab repo create #850

Merged
merged 1 commit into from
Oct 3, 2021
Merged

Add remoteName flag to glab repo create #850

merged 1 commit into from
Oct 3, 2021

Conversation

d3adb5
Copy link
Contributor

@d3adb5 d3adb5 commented Oct 2, 2021

Adds a flag to specify what remote name the user wants to use on the local git repository once the project has been created on GitLab.

Closes #803.

By default glab would add the created project's repository URL to the a
remote named 'origin', which fails when there already is such a remote.

This commit adds the option to specify a remote name for glab to add in
the local git repository, so that the user may specify a different one,
should 'origin' be already taken.

Closes #803.
@codecov
Copy link

codecov bot commented Oct 3, 2021

Codecov Report

Merging #850 (b389ca1) into trunk (5cb2858) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk     #850      +/-   ##
==========================================
- Coverage   59.42%   59.38%   -0.04%     
==========================================
  Files          93       93              
  Lines        7366     7370       +4     
==========================================
  Hits         4377     4377              
- Misses       2607     2611       +4     
  Partials      382      382              
Impacted Files Coverage Δ
commands/project/create/project_create.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe01cfc...b389ca1. Read the comment docs.

Copy link
Owner

@profclems profclems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for working on this @SkewerR

@profclems profclems merged commit 5d497fd into profclems:trunk Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set remote when glab repo create in a local git directory.
2 participants