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
F14012185: D13998.diff
Fri, Nov 1, 7:59 AM
F14009116: D13998.diff
Wed, Oct 30, 10:25 AM
F14008913: D13998.diff
Wed, Oct 30, 7:52 AM
F14007731: D13998.diff
Tue, Oct 29, 10:42 AM
F14003850: D13998.diff
Sat, Oct 26, 11:31 AM
F13970493: D13998.diff
Thu, Oct 17, 7:59 AM
Unknown Object (File)
Sun, Oct 13, 1:53 PM
Unknown Object (File)
Sun, Oct 13, 1:50 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