mwittig / npm-license-crawler

Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
BSD 3-Clause "New" or "Revised" License
233 stars 45 forks source link

RepositoryURL wrong when default branch is not master #54

Closed mbastian93 closed 1 year ago

mbastian93 commented 2 years ago

First of: This not actually an issue of this repository but of this, however, as that is a fork, I can't open an Issue there.

Now the issue: As per this line it is assumed, that every repository uses 'master' as default branch, but for many (most ?) repositories this is not the case (anymore), therefore the resulting URL is wrong.

According to this stackoverflow thread this should easily be solvable by replacing 'master' with 'HEAD'.