The raw.githubusercontent.com urls may return an LFS pointer instead of the actual file content.
There's no simple way of converting those pointers to a download URL so a more heuristic solution must be implemented, like parsing the path, extracting the owner, repo and a list of possible path and ref combinations and trying all these combinations against the GitHub's content API.
The
raw.githubusercontent.comurls may return an LFS pointer instead of the actual file content.There's no simple way of converting those pointers to a download URL so a more heuristic solution must be implemented, like parsing the path, extracting the
owner,repoand a list of possiblepathandrefcombinations and trying all these combinations against the GitHub's content API.