This check helps prevent the code from containing links to files on branches (since the branch content can change over time). Permalinks (i.e. links to files on a specific commit) are immune to that problem.
Link to description:
https://github.com/pre-commit/pre-commit-hooks/tree/main?tab=readme-ov-file#check-vcs-permalinks