Skip to content

Handle SSH urls better and avoid race conditions when setting git local configs#42

Open
twillard wants to merge 3 commits intofrace:masterfrom
twillard:master
Open

Handle SSH urls better and avoid race conditions when setting git local configs#42
twillard wants to merge 3 commits intofrace:masterfrom
twillard:master

Conversation

@twillard
Copy link
Copy Markdown

@twillard twillard commented Apr 3, 2017

Hi! This is a simple pull request fixing a couple issues I had locally when using this tool.

  1. The SSH urls from github and elsewhere (ie. git@github.com:project/path/thing.git) weren't handled well by urllib without an explicit ssh:// scheme on the front, so to handle this I simply check if the parse failed, tack on a ssh:// and try again.

  2. I got race conditions trying to set username and email without adding the git_process.wait() to the get_config method.

@twillard
Copy link
Copy Markdown
Author

twillard commented Apr 3, 2017

This should address at least some of issue #31

@twillard
Copy link
Copy Markdown
Author

twillard commented Apr 3, 2017

And issue #37

@skaldarnar
Copy link
Copy Markdown

This worked perfect for me. Would be nice to have it merged (or forked by someone with more time for PRs).

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.

2 participants