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
F18764366: D13998.id33824.diff
Oct 7 2025, 5:40 AM
F18746204: D13998.diff
Oct 3 2025, 11:50 AM
F18670169: D13998.id33823.diff
Sep 24 2025, 11:18 PM
F18596450: D13998.diff
Sep 13 2025, 12:42 AM
F18591925: D13998.diff
Sep 12 2025, 10:38 AM
F18587303: D13998.id33823.diff
Sep 11 2025, 8:59 PM
F18584185: D13998.diff
Sep 11 2025, 12:13 PM
F18582695: D13998.id33824.diff
Sep 11 2025, 8:50 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