git: escape string values in configuration

This should handle the special characters that typically occur.

Fixes #1206
This commit is contained in:
Robert Helgesson 2020-05-01 00:11:14 +02:00
parent 8b82f52e75
commit 642d9ffe24
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
6 changed files with 42 additions and 30 deletions

View file

@ -1,15 +1,15 @@
[sendemail "hm-account"]
from = hm@example.org
smtpEncryption = tls
smtpServer = smtp.example.org
smtpUser = home.manager.jr
from = "hm@example.org"
smtpEncryption = "tls"
smtpServer = "smtp.example.org"
smtpUser = "home.manager.jr"
[sendemail "hm@example.com"]
from = hm@example.com
smtpEncryption = tls
smtpServer = smtp.example.com
smtpUser = home.manager
from = "hm@example.com"
smtpEncryption = "tls"
smtpServer = "smtp.example.com"
smtpUser = "home.manager"
[user]
email = hm@example.com
name = H. M. Test
email = "hm@example.com"
name = "H. M. Test"