diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index d882239b..778e81a4 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -104,6 +104,10 @@ class GitConfig(object): | |||
104 | os.path.dirname(self.file), | 104 | os.path.dirname(self.file), |
105 | '.repo_' + os.path.basename(self.file) + '.json') | 105 | '.repo_' + os.path.basename(self.file) + '.json') |
106 | 106 | ||
107 | def ClearCache(self): | ||
108 | """Clear the in-memory cache of config.""" | ||
109 | self._cache_dict = None | ||
110 | |||
107 | def Has(self, name, include_defaults=True): | 111 | def Has(self, name, include_defaults=True): |
108 | """Return true if this configuration file has the key. | 112 | """Return true if this configuration file has the key. |
109 | """ | 113 | """ |
@@ -399,7 +403,7 @@ class GitConfig(object): | |||
399 | if p.Wait() == 0: | 403 | if p.Wait() == 0: |
400 | return p.stdout | 404 | return p.stdout |
401 | else: | 405 | else: |
402 | GitError('git config %s: %s' % (str(args), p.stderr)) | 406 | raise GitError('git config %s: %s' % (str(args), p.stderr)) |
403 | 407 | ||
404 | 408 | ||
405 | class RepoConfig(GitConfig): | 409 | class RepoConfig(GitConfig): |