Skip to content
Commit 802cd0c6 authored by Karsten Tausche's avatar Karsten Tausche Committed by Mike Frysinger
Browse files

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: default avatarKarsten Tausche <karsten@fairphone.com>
Reviewed-by: default avatarLaMont Jones <lamontjones@google.com>
parent 100a2143
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment