diff options
author | LaMont Jones <lamontjones@google.com> | 2022-11-08 00:54:56 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-11-08 00:54:56 +0000 |
commit | 5fb9c6a5b35220e27b3acd5861318584588cd0d8 (patch) | |
tree | d3d3a7d6d021e1547d9f22875aea57a717540f92 /git_config.py | |
parent | 859d3d958057e35b618e8cca209a85317d49a974 (diff) | |
download | git-repo-5fb9c6a5b35220e27b3acd5861318584588cd0d8.tar.gz |
v2.29.7: Revert back to v2.29.5v2.29.7
This change reverts stable to v2.29.5, to fix clients that received
v2.29.6, and keep future updates simpler.
Change-Id: I2f5c52c466b7321665c9699ccdbf98f928483fee
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/git_config.py b/git_config.py index 94378e9a..6f80ae08 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -219,8 +219,8 @@ class GitConfig(object): | |||
219 | """Set the value(s) for a key. | 219 | """Set the value(s) for a key. |
220 | Only this configuration file is modified. | 220 | Only this configuration file is modified. |
221 | 221 | ||
222 | The supplied value should be either a string, or a list of strings (to | 222 | The supplied value should be either a string, |
223 | store multiple values), or None (to delete the key). | 223 | or a list of strings (to store multiple values). |
224 | """ | 224 | """ |
225 | key = _key(name) | 225 | key = _key(name) |
226 | 226 | ||
@@ -349,9 +349,9 @@ class GitConfig(object): | |||
349 | except OSError: | 349 | except OSError: |
350 | return None | 350 | return None |
351 | try: | 351 | try: |
352 | with Trace(': parsing %s', self.file): | 352 | Trace(': parsing %s', self.file) |
353 | with open(self._json) as fd: | 353 | with open(self._json) as fd: |
354 | return json.load(fd) | 354 | return json.load(fd) |
355 | except (IOError, ValueError): | 355 | except (IOError, ValueError): |
356 | platform_utils.remove(self._json, missing_ok=True) | 356 | platform_utils.remove(self._json, missing_ok=True) |
357 | return None | 357 | return None |