Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix another bug found by Fedora users, indented config sections. Newer RawConfigParser handles them fine, as does git config.#21

Closed
jkeating wants to merge 1 commit into
gitpython-developers:mastergitpython-developers/GitPython:masterfrom
jkeating:masterjkeating/GitPython:masterCopy head branch name to clipboard
Closed

Fix another bug found by Fedora users, indented config sections. Newer RawConfigParser handles them fine, as does git config.#21
jkeating wants to merge 1 commit into
gitpython-developers:mastergitpython-developers/GitPython:masterfrom
jkeating:masterjkeating/GitPython:masterCopy head branch name to clipboard

Conversation

@jkeating

Copy link
Copy Markdown
Contributor

This brings over some new code from RawConfigParser that handles lines
that start with spaces but are also sections themselves, eg:

[color]
ui = auto
[color "branch"]

Previously this would cause a traceback.
(https://bugzilla.redhat.com/show_bug.cgi?id=706218)

This brings over some new code from RawConfigParser that handles lines
that start with spaces but are also sections themselves, eg:

[color]
    ui = auto
  [color "branch"]

Previously this would cause a traceback.
(https://bugzilla.redhat.com/show_bug.cgi?id=706218)
@jkeating

Copy link
Copy Markdown
Contributor Author

Gah, don't pull this, it doesn't fix it like I thought it did.

@jkeating jkeating closed this May 28, 2011
@Byron

Byron commented May 28, 2011

Copy link
Copy Markdown
Member

ok, but let me paste my previous reply, which basically asks you to work with the unittests.

Could you modify and existing fixture (like. git_config in test/fixtures) to contain lines that your change is fixing, maybe including some variations you make up that you think should be fine as well.
Then run the unit-tests (test_config.py) to be sure it actually works and doesn't break anything else.

Once that is verified, I will be glad to merge.
Thanks,
Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.