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)
Thu, Dec 5, 4:38 AM
Unknown Object (File)
Tue, Dec 3, 2:36 PM
Unknown Object (File)
Tue, Dec 3, 7:44 AM
Unknown Object (File)
Sun, Dec 1, 4:52 PM
Unknown Object (File)
Wed, Nov 27, 5:01 PM
Unknown Object (File)
Tue, Nov 26, 7:40 AM
Unknown Object (File)
Sat, Nov 23, 9:38 PM
Unknown Object (File)
Nov 8 2024, 3:20 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