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
F19788660: D13998.diff
Wed, Feb 25, 4:31 PM
F19714429: D13998.diff
Thu, Feb 12, 1:27 AM
F19647477: D13998.id33824.diff
Fri, Feb 6, 3:44 AM
F19634538: D13998.id33823.diff
Thu, Feb 5, 8:34 AM
F19559594: D13998.id33823.diff
Sat, Jan 31, 2:06 AM
F19476785: D13998.diff
Jan 7 2026, 7:39 PM
F19084118: D13998.diff
Dec 2 2025, 2:35 PM
F18764366: D13998.id33824.diff
Oct 7 2025, 5:40 AM
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