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)
Sun, Jan 19, 12:57 PM
Unknown Object (File)
Fri, Jan 17, 10:23 PM
Unknown Object (File)
Fri, Jan 17, 10:41 AM
Unknown Object (File)
Mon, Jan 13, 5:19 PM
Unknown Object (File)
Sun, Jan 5, 3:38 PM
Unknown Object (File)
Thu, Jan 2, 8:40 PM
Unknown Object (File)
Fri, Dec 27, 5:53 PM
Unknown Object (File)
Dec 15 2024, 6:01 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.