Commit 22c81c7
committed
fix(git): convert SCP-like submodule URLs to ssh:// format
PR rust-lang#16246 introduced a regression where submodules using SCP-like URLs
fail because `child_remote_url.into_url()` requires WHATWG-parsable URLs.
This commit fixes the issue by detecting SCP-like URLs in `absolute_submodule_url()`
and converting them to the equivalent `ssh://` format.
Signed-off-by: Cibil Pankiras <cibil.pankiras@egym.com>1 parent e26896f commit 22c81c7
2 files changed
Lines changed: 26 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
515 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
| |||
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
549 | 559 | | |
550 | 560 | | |
551 | 561 | | |
| |||
1623 | 1633 | | |
1624 | 1634 | | |
1625 | 1635 | | |
1626 | | - | |
| 1636 | + | |
1627 | 1637 | | |
1628 | 1638 | | |
1629 | 1639 | | |
| |||
1668 | 1678 | | |
1669 | 1679 | | |
1670 | 1680 | | |
1671 | | - | |
| 1681 | + | |
1672 | 1682 | | |
1673 | 1683 | | |
1674 | 1684 | | |
1675 | 1685 | | |
1676 | | - | |
| 1686 | + | |
1677 | 1687 | | |
1678 | 1688 | | |
1679 | 1689 | | |
1680 | 1690 | | |
1681 | | - | |
| 1691 | + | |
1682 | 1692 | | |
1683 | 1693 | | |
1684 | 1694 | | |
1685 | 1695 | | |
1686 | | - | |
| 1696 | + | |
1687 | 1697 | | |
1688 | 1698 | | |
1689 | 1699 | | |
1690 | 1700 | | |
1691 | | - | |
| 1701 | + | |
1692 | 1702 | | |
1693 | 1703 | | |
1694 | 1704 | | |
1695 | 1705 | | |
1696 | | - | |
| 1706 | + | |
1697 | 1707 | | |
1698 | 1708 | | |
1699 | 1709 | | |
1700 | 1710 | | |
1701 | | - | |
| 1711 | + | |
1702 | 1712 | | |
1703 | 1713 | | |
1704 | 1714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4421 | 4421 | | |
4422 | 4422 | | |
4423 | 4423 | | |
4424 | | - | |
4425 | | - | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
4426 | 4427 | | |
4427 | 4428 | | |
4428 | 4429 | | |
4429 | 4430 | | |
| 4431 | + | |
4430 | 4432 | | |
4431 | 4433 | | |
4432 | 4434 | | |
| |||
4439 | 4441 | | |
4440 | 4442 | | |
4441 | 4443 | | |
4442 | | - | |
4443 | | - | |
| 4444 | + | |
| 4445 | + | |
4444 | 4446 | | |
4445 | 4447 | | |
4446 | 4448 | | |
0 commit comments