ejwa / gitinspector

:bar_chart: The statistical analysis tool for git repositories
GNU General Public License v3.0
2.38k stars 328 forks source link

Not a directory: "foo.bar.license" #247

Open Elshid opened 6 months ago

Elshid commented 6 months ago

The program does view certain files as directories. Recommend first to check whether something is a directory.

Output:

Traceback (most recent call last): File "/usr/bin/gitinspector", line 33, in <module> sys.exit(load_entry_point('gitinspector==0.4.4', 'console_scripts', 'gitinspector')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gitinspector/gitinspector.py", line 121, in main config.init(__run__) File "/usr/lib/python3/dist-packages/gitinspector/config.py", line 56, in init var = __read_git_config_string__(run.repo, "file-types") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gitinspector/config.py", line 52, in __read_git_config_string__ string = __read_git_config__(repo, variable) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gitinspector/config.py", line 32, in __read_git_config__ os.chdir(repo) NotADirectoryError: [Errno 20] Not a directory: 'foo.bar.license'