← Winnitude! Search  ·  Reader Mode (1291 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 10 LINKS

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, 2026

Before #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions