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
F19476785: D13998.diff
Wed, Jan 7, 7:39 PM
F19084118: D13998.diff
Dec 2 2025, 2:35 PM
F18764366: D13998.id33824.diff
Oct 7 2025, 5:40 AM
F18746204: D13998.diff
Oct 3 2025, 11:50 AM
F18670169: D13998.id33823.diff
Sep 24 2025, 11:18 PM
F18596450: D13998.diff
Sep 13 2025, 12:42 AM
F18591925: D13998.diff
Sep 12 2025, 10:38 AM
F18587303: D13998.id33823.diff
Sep 11 2025, 8:59 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
Branch
contain-your-enthusiasm
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7818
Build 8668: [Placeholder Plan] Wait for 30 Seconds
Build 8667: arc lint + arc unit