Repo.get_config fails with git-init-created .git/config

Bug #768687 reported by nick bollweg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
Medium
Jelmer Vernooij

Bug Description

A .git/config created by the git command line tool cannot be read by dulwich, due to the default use of tabs for option-value pairs.

The attached patch monkeypatches the option RE of ConfigReader to allow for spaces occuring prior to the option name.

Tags: config
Revision history for this message
nick bollweg (nick-bollweg) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks for the patch. Unfortunately monkey patching isn't really an option; we should probably implement a custom config writer/parser.

Changed in dulwich:
status: New → Triaged
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
tags: added: config
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This was actually fixed in 0.8.3.

Changed in dulwich:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.