kowainik / hit-on

:octocat: Kowainik Git Workflow Helper Tool
https://kowainik.github.io/projects/hit-on
Mozilla Public License 2.0
76 stars 13 forks source link

parseOwnerRepo expects a .git suffix but that is optional #50

Closed arbus closed 5 years ago

vrom911 commented 5 years ago

@arbus Can you please give the link to the docs on that? And just provide the details on how do you get the link without .git suffix? The standard ways don't seem to have this behaviour.

arbus commented 5 years ago

When I close a new repo, I usually just type out the URL and have never included the .git and it has always worked

chshersh commented 5 years ago

@arbus hit clone command was implemented by @vrom911 in #52. So now you should be able to just:

hit clone holmusk/repo-name

This will clone repo with URL scheme consistent with the rest of the hit. I think we also can support parsing of SSH urls with optional .git suffix, but now at least with hit clone command you don't need to think about full URL.