Commit 160716e
committed
installer: refuse illegal default branch names
When the user wants to override the default branch name, it is all too
easy to make a mistake and slip e.g. a trailing space in. Let's help
users by preventing such mistakes.
Note: technically the correct way would _not_ be to reimplement
`check_ref_format()`, but at the stage when we want to let the user
specify the branch name, we do not necessarily have a working `git.exe`
to call. That's why the logic was reimplemented (without regular
expressions! Yay Pascal!).
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 2dc0a72 commit 160716e
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1631 | 1631 | | |
1632 | 1632 | | |
1633 | 1633 | | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1634 | 1656 | | |
1635 | 1657 | | |
1636 | 1658 | | |
| |||
1888 | 1910 | | |
1889 | 1911 | | |
1890 | 1912 | | |
| 1913 | + | |
1891 | 1914 | | |
1892 | 1915 | | |
1893 | 1916 | | |
| |||
1905 | 1928 | | |
1906 | 1929 | | |
1907 | 1930 | | |
| 1931 | + | |
1908 | 1932 | | |
1909 | 1933 | | |
1910 | 1934 | | |
| |||
0 commit comments