Title: Using # or ; in config values · Issue #2214 · gitpython-developers/GitPython · GitHub
Open Graph Title: Using # or ; in config values · Issue #2214 · gitpython-developers/GitPython
X Title: Using # or ; in config values · Issue #2214 · gitpython-developers/GitPython
Description: 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 st...
Open Graph Description: 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 string...
X Description: 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 string...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2214
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using # or ; in config values","articleBody":"Before https://github.com/gitpython-developers/GitPython/pull/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.\n\nReproducer: [gitpython-config-comment-reproducer.py](https://github.com/user-attachments/files/30924256/gitpython-config-comment-reproducer.py)","author":{"url":"https://github.com/nijel","@type":"Person","name":"nijel"},"datePublished":"2026-08-11T06:26:19Z","url":"https://github.com/gitpython-developers/GitPython/issues/2214"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ef811725-10bc-08b0-423a-fe5897eb637b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8586:928E2:D526A3:11D6D61:6B0100BA |
| html-safe-nonce | c2ecfd9c305f304e256e70e10a4f3176cca331ef9593c0df48d6dce56e3dbbbe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTg2OjkyOEUyOkQ1MjZBMzoxMUQ2RDYxOjZCMDEwMEJBIiwidmlzaXRvcl9pZCI6IjI2NzQ1MDI4MTczNTEyNzA1ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 687e15c9f7002f490ee517a17839040b218723c5631c715f7bc9bb3d23327ecc |
| hovercard-subject-tag | issue:5117338148 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2214/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11b107577e5d8f6678cee7d727356596945869dfb7a3c6f79e17d307a52c3aef/gitpython-developers/GitPython/issues/2214 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11b107577e5d8f6678cee7d727356596945869dfb7a3c6f79e17d307a52c3aef/gitpython-developers/GitPython/issues/2214 |
| og:image:alt | 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 string... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nijel |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width