Page MenuHomePhabricator

Use 'remote.origin.url' fallback for git < 1.7.5
ClosedPublic

Authored by jbeta on Aug 26 2015, 10:01 PM.
Tags
None
Referenced Files
F17625405: D13998.diff
Thu, Jul 10, 3:14 AM
Unknown Object (File)
Sat, Jun 28, 3:59 PM
Unknown Object (File)
Jun 6 2025, 3:27 PM
Unknown Object (File)
May 27 2025, 6:05 AM
Unknown Object (File)
May 25 2025, 2:30 PM
Unknown Object (File)
May 25 2025, 6:26 AM
Unknown Object (File)
May 20 2025, 4:58 PM
Unknown Object (File)
May 7 2025, 7:53 PM
Subscribers

Details

Summary

'git ls-remote --get-url' is more correct, but younger and less
supported. This commit tempers previous optimism about its availability,
improving support for users of older git packages.

Test Plan
  • Set git config url.xttps.insteadOf https rewrite rule.
  • Ran arc which with git 1.7.5 in $PATH, saw rewritten configured remote.
  • Ran arc which with git 1.7.4 in $PATH, saw configured remote.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable