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
F15583103: D13998.diff
Wed, May 7, 7:53 PM
F15573789: D13998.id.diff
Mon, May 5, 10:01 PM
F15553693: D13998.id.diff
Mon, Apr 28, 3:16 AM
F15532144: D13998.id33824.diff
Wed, Apr 23, 2:34 PM
F15525267: D13998.id33823.diff
Mon, Apr 21, 1:13 PM
F15519774: D13998.id33824.diff
Sat, Apr 19, 11:44 PM
F15519773: D13998.diff
Sat, Apr 19, 11:44 PM
F15517104: D13998.id33824.diff
Sat, Apr 19, 12:21 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