Commit 2dc0a72
committed
installer: record the default choice for the Default Branch option
If the user wants to simply follow what Git wants to use as the default
branch name in freshly-initialized repositories, we used to record the
empty string.
Except we didn't.
Because InnoSetup's `SetPreviousData()` function special-cases the empty
string to mean "delete that key from the previous data instead of
recording a value" (even if the documentation does not spell that out:
https://jrsoftware.org/ishelp/index.php?topic=isxfunc_setpreviousdata).
Let's just use a single space character instead of the empty string
(which does not specify a valid branch name) to indicate that the user
did not want to override Git's default.
Signed-off-by: Johannes Schindelin <[email protected]>1 parent fd31539 commit 2dc0a72
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1899 | 1899 | | |
1900 | 1900 | | |
1901 | 1901 | | |
1902 | | - | |
| 1902 | + | |
| 1903 | + | |
1903 | 1904 | | |
1904 | 1905 | | |
1905 | 1906 | | |
| |||
3162 | 3163 | | |
3163 | 3164 | | |
3164 | 3165 | | |
3165 | | - | |
| 3166 | + | |
3166 | 3167 | | |
3167 | 3168 | | |
3168 | 3169 | | |
| |||
0 commit comments