When the 'url' property of 'repository' is a local file, Windows and Mac will behave differently. On windows, the "project" and "user" properties returned will be null, whereas on a Mac they will be populated. See this example: https://stackblitz.com/edit/node-kypon1?file=index.js
Though a local file is rarely used as a git origin, it is technically valid (see: "bare" repositories and useful for mocking git remotes for the purpose of integration testing. The inconsistency in behavior between Windows and Mac causes downstream issues in these types of tests.