Using # or ; in config values · Issue #2214 · gitpython-developers/GitPython
Repository navigation
Using # or ; in config values #2214
New issue
New issue
Closed
#2213
Closed
Using # or ; in config values #2214 #2213
Description
@nijel's profile nijel opened on Aug 11, 2026Before #2211 we used json.dumps to write branch names to Git configuration to deal with special chars. The pull request seems to address part of the issues and breaks our approach of quoting strings (what I believe is correct), but it still doesn't handle some special characters as it doesn't quote # or ;. Both of these are treated as comments when reading the configuration with Git, so the set value is truncated there.
Reproducer: gitpython-config-comment-reproducer.py