Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jkeating
Copy link
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
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
Copy link
Member

Byron commented May 28, 2011

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