diff --git a/git_config.py b/git_config.py index e1e20463..2655939b 100644 --- a/git_config.py +++ b/git_config.py @@ -71,6 +71,14 @@ class GitConfig(object): else: self._pickle = pickleFile + def ClearCache(self): + if os.path.exists(self._pickle): + os.remove(self._pickle) + self._cache_dict = None + self._section_dict = None + self._remotes = {} + self._branches = {} + def Has(self, name, include_defaults = True): """Return true if this configuration file has the key. """