Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior between Windows & Mac for "file:///" urls #80

Open
fahslaj opened this issue Jul 12, 2022 · 0 comments
Open

Inconsistent behavior between Windows & Mac for "file:///" urls #80

fahslaj opened this issue Jul 12, 2022 · 0 comments

Comments

@fahslaj
Copy link

fahslaj commented Jul 12, 2022

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.

@fahslaj fahslaj changed the title Inconsistent behavior between Windows & Mac for "file:///" urls Inconsistent behavior between Windows & Mac for bare git remotes (file urls) Jul 12, 2022
@fahslaj fahslaj changed the title Inconsistent behavior between Windows & Mac for bare git remotes (file urls) Inconsistent behavior between Windows & Mac for bare git remotes ("file:///" urls) Jul 12, 2022
@fahslaj fahslaj changed the title Inconsistent behavior between Windows & Mac for bare git remotes ("file:///" urls) Inconsistent behavior between Windows & Mac for "file:///" urls Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant