HomePhabricator

Use 'remote.origin.url' fallback for git < 1.7.5

Description

Use 'remote.origin.url' fallback for git < 1.7.5

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.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13998

Details

Provenance
jbetaAuthored on
epriestleyCommitted on Aug 26 2015, 10:59 PM
epriestleyPushed on Aug 26 2015, 10:59 PM
Reviewer
Blessed Reviewers
Differential Revision
D13998: Use 'remote.origin.url' fallback for git < 1.7.5
Parents
rARC4c3d75401f81: Use 'git blame --porcelain' for git blame info
Branches
Unknown
Tags
Unknown