From: Chris Packham Date: Mon, 10 Aug 2009 20:50:45 +0000 (+1200) Subject: Re-send [StGit BUG/PATCH] config.py: fix unset X-Git-Tag: v0.15-rc2~13 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/641ec5525f935755edee908e43f4e4372cb3b08f Re-send [StGit BUG/PATCH] config.py: fix unset Missing invocation of .run() so config.unset('blah') didn't do anything. Consequently the fact that the next line set the value to 'None' instead of a list with 1 element i.e. '[None]' was not noticed. Signed-off-by: Chris Packham --- diff --git a/stgit/config.py b/stgit/config.py index 4a6cb3b..6f84b10 100644 --- a/stgit/config.py +++ b/stgit/config.py @@ -94,8 +94,8 @@ class GitConfig: self.__cache[name] = value def unset(self, name): - Run('git', 'config', '--unset', name) - self.__cache[name] = None + Run('git', 'config', '--unset', name).run() + self.__cache[name] = [None] def sections_matching(self, regexp): """Takes a regexp with a single group, matches it against all