The config caching was never invalidated or updated, which caused the
two gets to always return the same value regardless of the value
passed to set.
Signed-off-by: Karl Hasselström <kha@treskal.com>
def rename_section(self, from_name, to_name):
self.__run('git-repo-config --rename-section', [from_name, to_name])
def rename_section(self, from_name, to_name):
self.__run('git-repo-config --rename-section', [from_name, to_name])
def set(self, name, value):
self.__run('git-repo-config', [name, value])
def set(self, name, value):
self.__run('git-repo-config', [name, value])
+ self.__cache[name] = value
def unset(self, name):
self.__run('git-repo-config --unset', [name])
def unset(self, name):
self.__run('git-repo-config --unset', [name])
+ self.__cache[name] = None
def sections_matching(self, regexp):
"""Takes a regexp with a single group, matches it against all
def sections_matching(self, regexp):
"""Takes a regexp with a single group, matches it against all