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

Add custom GitHub URL support #63

Merged
merged 2 commits into from Apr 18, 2020
Merged

Add custom GitHub URL support #63

merged 2 commits into from Apr 18, 2020

Conversation

tg-m
Copy link
Contributor

@tg-m tg-m commented Apr 17, 2020

Hi,

I've noticed that the GitHub URL is hard coded. It prevents pushing to repositories if there are multiple GitHub accounts configured on the same machine, e.g., if ~/.ssh/config look like this:

Host github.com
    Hostname github.com
    User git
    IdentityFile ~/.ssh/main-user/github/id_rsa
    IdentitiesOnly yes

Host github.com-other-user-url
    Hostname github.com
    User git
    IdentityFile ~/.ssh/other-user/github/id_rsa
    IdentitiesOnly yes

The commit/push with custom URL can be invoked as:

ablog deploy -g other-user --github-url="git@github.com-other-user-url" -m "..."

@nabobalis
Copy link
Contributor

Thanks @tg-m

@nabobalis nabobalis merged commit cad966f into sunpy:master Apr 18, 2020
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.

None yet

2 participants