diff options
author | Karsten Tausche <karsten@fairphone.com> | 2022-12-06 09:56:28 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2022-12-08 06:29:00 +0000 |
commit | 802cd0c6016d91c62c25178ee1ccc1e78505502c (patch) | |
tree | 48a0ba18e2729bdc5f0acec225514e2c67e91534 /tests/test_platform_utils.py | |
parent | 100a2143156c9e35d84688da62124f6a629773dd (diff) | |
download | git-repo-802cd0c6016d91c62c25178ee1ccc1e78505502c.tar.gz |
sync: Fix undefined variable in _FetchOne
If syncing in _FetchOne fails with GitError, sync_result does not get
set. There's already a separate local variable for success; do the same
for remote_fetched instead of referring to the conditionally defined
named tuple.
This bug is originally caused by a combination of ad8aa697 "sync: only
print error.GitError, don't raise that exception." and 1eddca84 "sync:
use namedtuples for internal return values".
Change-Id: I0f9dbafb97f8268044e5a56a6f92cf29bc23ca6a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354176
Tested-by: Karsten Tausche <karsten@fairphone.com>
Reviewed-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'tests/test_platform_utils.py')
0 files changed, 0 insertions, 0 deletions