Home GnuPG

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
Javier Arteaga <code@jbeta.is>Authored on Aug 27 2015, 12:59 AM
epriestley <git@epriestley.com>Committed on Aug 27 2015, 12:59 AM
Parents
rARC4c3d75401f81: Use 'git blame --porcelain' for git blame info
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rARCc22dfe61ed01: Use 'remote.origin.url' fallback for git < 1.7.5 (authored by Javier Arteaga <code@jbeta.is>).Aug 27 2015, 12:59 AM