Page MenuHomePhabricator

Omit "--" in older fallback commands for Git remote URIs
ClosedPublic

Authored by epriestley on Jan 24 2020, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 19 2024, 5:40 AM
Unknown Object (File)
Oct 18 2024, 2:06 AM
Unknown Object (File)
Sep 21 2024, 8:00 AM
Unknown Object (File)
Sep 20 2024, 11:41 AM
Unknown Object (File)
Sep 6 2024, 7:02 AM
Unknown Object (File)
Sep 6 2024, 7:02 AM
Unknown Object (File)
Sep 6 2024, 7:02 AM
Unknown Object (File)
Sep 6 2024, 7:02 AM
Subscribers
None

Details

Summary

Ref T13481. Some older versions of Git appear to not support "--" in these commands. Just drop it. This can lead to ambiguous results with certain obviously-silly remote names, but doesn't appear to lead to anything dangerous.

Test Plan

Will followup with user on ancient Git.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Only omit "--" in "git ls-remote", since it seems like it's okay for even very old "git config".

It's possible that "--" doesn't work in VERY VERY OLD "git config", but we can always drop it if a user with Rare Beta Git shows up.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 24 2020, 12:50 AM
This revision was automatically updated to reflect the committed changes.