Prevent spurious failures from pre-commit in MRs from forks
As described in !1640 (comment 8641421), MRs from forks run pre-commit on the wrong set of files.
As described in !1640 (comment 8641421), MRs from forks run pre-commit on the wrong set of files.