mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Sync with Git 2.50.1
This commit is contained in:
2
config.c
2
config.c
@@ -2935,7 +2935,7 @@ static ssize_t write_pair(int fd, const char *key, const char *value,
|
||||
if (value[0] == ' ')
|
||||
quote = "\"";
|
||||
for (i = 0; value[i]; i++)
|
||||
if (value[i] == ';' || value[i] == '#')
|
||||
if (value[i] == ';' || value[i] == '#' || value[i] == '\r')
|
||||
quote = "\"";
|
||||
if (i && value[i - 1] == ' ')
|
||||
quote = "\"";
|
||||
|
||||
Reference in New Issue
Block a user