Skip to content

Handle indented comments in git config files (issue #17) #18

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

tmzullinger
Copy link
Contributor

It's perfectly valid for a git config file to contain comments inside
sections, e.g.:

[core]
    # This is a shared repository
    sharedRepository = true

The git tools all parse this fine while GitPython was choking on it.

It's perfectly valid for a git config file to contain comments inside
sections, e.g.:

[core]
	# This is a shared repository
	sharedRepository = true

The git tools all parse this fine while GitPython was choking on it.
@Byron
Copy link
Member

Byron commented May 24, 2011

Could you modify and existing fixture (like. git_config in test/fixtures) to contain comments, maybe including some variations you make up that you think should be fine as well.

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

@Byron
Copy link
Member

Byron commented Jun 7, 2011

I have implemented the contents of this pull request and pushed the changes to the new 0.3 branch. This is to indicate that GitPython 0.3 reached the end of its life and is in maintenance mode. A proper release of 0.3 will follow.

Master now moved on to the latest stable development, which will be 0.4 one day. As master was reset, you will have to reset your local master as well.

Thanks for your participation,
Sebastian

@Byron Byron closed this Jun 7, 2011
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