Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Support to repository name including dots ( fixes #13 ) - #17

Merged
Christof Marti (chrmarti) merged 5 commits into
microsoft:masterfrom
wraith13:master
Aug 1, 2017
Merged

Christof Marti (chrmarti) merged 5 commits into
microsoft:masterfrom
wraith13:master

Conversation

@wraith13

Copy link
Copy Markdown
Contributor

I fixed #13 .
Let me know if there are any problem.

@msftclas

道化師 (@wraith13),
Thanks for having already signed the Contribution License Agreement. Your agreement has not been validated yet. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@chrmarti

Copy link
Copy Markdown
Contributor

Would it be simpler to just match .git and then drop the following [^\s]*?

@wraith13

Copy link
Copy Markdown
Contributor Author

Yes, I think so.

@chrmarti

Copy link
Copy Markdown
Contributor

If you get a chance to update the PR, I'll be happy to merge it.

@wraith13

Copy link
Copy Markdown
Contributor Author

Thanks!

@wraith13

Copy link
Copy Markdown
Contributor Author

Sorry! I misunderstood that you said. ( My close friend informed to me. )
I will fix it later.

@wraith13

Copy link
Copy Markdown
Contributor Author

I fixed. How about this?

@chrmarti

Copy link
Copy Markdown
Contributor

Don't all GitHub remote's have the .git suffix? I thought /[^\s]*github\.com[/:]([^/]+)\/([^ ]+)\.git/ might do it.

@wraith13

Copy link
Copy Markdown
Contributor Author

Sorry, I am not familiar with git.
So, I took a safe way.

@wraith13

Copy link
Copy Markdown
Contributor Author

@wraith13

Copy link
Copy Markdown
Contributor Author

How about this time?

@chrmarti

Copy link
Copy Markdown
Contributor

Looks good, except I just found a remote without the '.git' suffix. Maybe that has become optional at some point?

@wraith13

Copy link
Copy Markdown
Contributor Author

I do not know. However, I think other tools also expect(need) '.git'.

First of all, in accordance with KISS principle, adopt this simple code.
We will respond if the complaint actually comes.
How about such a plan?

@chrmarti

Copy link
Copy Markdown
Contributor

Let's remove \.git from the regex and then remove .git from the owner variable later if it is there. That's simple and I have a case where .git is missing myself.

@wraith13

Copy link
Copy Markdown
Contributor Author

It's a repo instead of an owner, is it?
I fixed, how is this?

@chrmarti
Christof Marti (chrmarti) merged commit 7411dc5 into microsoft:master Aug 1, 2017
@chrmarti

Copy link
Copy Markdown
Contributor

Thanks 道化師 (@wraith13) !

Kai Maetzel (kieferrm) pushed a commit to kieferrm/vscode-github-issues-prs that referenced this pull request Apr 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

It does not work in a repository that contains dots in the path/name.

3 participants