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
Unknown Object (File)
Fri, Nov 8, 3:20 PM
Unknown Object (File)
Thu, Nov 7, 3:48 AM
Unknown Object (File)
Wed, Nov 6, 3:40 PM
Unknown Object (File)
Wed, Nov 6, 3:40 PM
Unknown Object (File)
Wed, Nov 6, 3:40 PM
Unknown Object (File)
Fri, Nov 1, 7:59 AM
Unknown Object (File)
Wed, Oct 30, 10:25 AM
Unknown Object (File)
Wed, Oct 30, 7:52 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