Commit b45113f
committed
Merge branch 'jk/fetch-follow-remote-head-fix'
"git fetch [<remote>]" with only the configured fetch refspec
should be the only thing to update refs/remotes/<remote>/HEAD,
but the code was overly eager to do so in other cases.
* jk/fetch-follow-remote-head-fix:
fetch: make set_head() call easier to read
fetch: don't ask for remote HEAD if followRemoteHEAD is "never"
fetch: only respect followRemoteHEAD with configured refspecsFile tree
4 files changed
+32
-28
lines changed- Documentation/config
- builtin
- t
4 files changed
+32
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | 1646 | | |
1650 | 1647 | | |
1651 | 1648 | | |
| |||
1691 | 1688 | | |
1692 | 1689 | | |
1693 | 1690 | | |
1694 | | - | |
1695 | | - | |
1696 | | - | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | 1691 | | |
1710 | 1692 | | |
1711 | 1693 | | |
| |||
1720 | 1702 | | |
1721 | 1703 | | |
1722 | 1704 | | |
| 1705 | + | |
1723 | 1706 | | |
1724 | 1707 | | |
1725 | 1708 | | |
| |||
1740 | 1723 | | |
1741 | 1724 | | |
1742 | 1725 | | |
1743 | | - | |
| 1726 | + | |
1744 | 1727 | | |
1745 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
1746 | 1732 | | |
1747 | 1733 | | |
1748 | 1734 | | |
| |||
1765 | 1751 | | |
1766 | 1752 | | |
1767 | 1753 | | |
1768 | | - | |
1769 | | - | |
| 1754 | + | |
1770 | 1755 | | |
1771 | 1756 | | |
1772 | 1757 | | |
| |||
1925 | 1910 | | |
1926 | 1911 | | |
1927 | 1912 | | |
1928 | | - | |
1929 | | - | |
| 1913 | + | |
1930 | 1914 | | |
1931 | | - | |
1932 | | - | |
| 1915 | + | |
| 1916 | + | |
1933 | 1917 | | |
| 1918 | + | |
| 1919 | + | |
1934 | 1920 | | |
1935 | 1921 | | |
1936 | 1922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
| |||
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
259 | 276 | | |
260 | 277 | | |
261 | 278 | | |
| |||
0 commit comments