Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source control: prefer remote named "origin" #7

Merged
merged 3 commits into from
Mar 31, 2020

Conversation

bengourley
Copy link
Contributor

This update includes a contribution from @marktran (thanks Mark!) to select the url from the remote named origin when attemping to detect the git repo URL. Previously it would just choose the first remote from the list output by git remote -v, which lists in alphabetical order.

Since the command git remote get-url <name> will error if the provided remote does not exist, I added a fallback to the original logic.

@bengourley bengourley requested a review from tomlongridge March 24, 2020 11:45
@bengourley bengourley merged commit aea9bf8 into master Mar 31, 2020
@bengourley bengourley deleted the fix-repo-url-parsing branch March 31, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants