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)
Mon, Apr 1, 11:21 PM
Unknown Object (File)
Mon, Apr 1, 2:02 AM
Unknown Object (File)
Wed, Mar 20, 7:16 PM
Unknown Object (File)
Feb 13 2024, 11:39 PM
Unknown Object (File)
Feb 8 2024, 10:35 PM
Unknown Object (File)
Jan 28 2024, 8:57 AM
Unknown Object (File)
Jan 4 2024, 11:11 AM
Unknown Object (File)
Dec 24 2023, 5:31 PM
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.