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
F18100838: D20952.diff
Sat, Aug 9, 12:07 PM
F17949751: D20952.id49917.diff
Thu, Jul 31, 11:49 PM
F17752787: D20952.diff
Tue, Jul 22, 7:42 AM
F17752149: D20952.id49917.diff
Tue, Jul 22, 6:35 AM
F17752130: D20952.id49916.diff
Tue, Jul 22, 6:33 AM
F17748573: D20952.id.diff
Tue, Jul 22, 12:08 AM
F17704047: D20952.id49917.diff
Wed, Jul 16, 2:57 AM
Unknown Object (File)
May 19 2025, 3: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.