roskakori / pygount

count lines of code for hundreds of languages using pygments
https://pygount.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
156 stars 22 forks source link

Fix silent error on git failing #162

Closed roskakori closed 2 months ago

roskakori commented 2 months ago

Steps to reproduce:

  1. Run:
    pygount https://github.com/roskakori/pygount/
  2. No output shows.

Expected behavior:

If the specified path starts with http[s]:// or git@ but the regex for a full repository path does not match, the following error message shows:

URL to git repository must end with ".git", for example git@github.com:roskakori/pygount.git or https://github.com/roskakori/pygount.git.