git-repo/subcmds
Karsten Tausche 802cd0c601 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>
2022-12-08 06:29:00 +00:00
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
branches.py subcmds: display correct path multitree messages 2022-11-15 21:13:06 +00:00
checkout.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
cherry_pick.py cherry-pick: tighten up output 2022-08-22 19:38:32 +00:00
diff.py status, diff: display correct path for multi-manifest 2022-07-14 16:00:18 +00:00
diffmanifests.py subcmds: display correct path multitree messages 2022-11-15 21:13:06 +00:00
download.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
forall.py forall: fix multi-manifest variables. 2022-04-14 14:31:47 +00:00
gitc_delete.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
gitc_init.py GitcInit: fix gitc-init failure 2022-11-04 17:30:40 +00:00
grep.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
help.py help: fix grammar in help text 2021-11-12 17:30:32 +00:00
info.py manifest: add submanifest.default_groups attribute 2022-04-29 18:42:23 +00:00
init.py init: add --manifest-depth for shallow manifest clone 2022-10-27 21:59:09 +00:00
list.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
manifest.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
overview.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
prune.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
rebase.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
selfupdate.py sync: use namedtuples for internal return values 2022-09-19 22:03:18 +00:00
smartsync.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
stage.py stage: add missing flush before project prompt 2022-08-22 20:48:29 +00:00
start.py Add multi-manifest support with <submanifest> element 2022-02-17 21:57:55 +00:00
status.py status, diff: display correct path for multi-manifest 2022-07-14 16:00:18 +00:00
sync.py sync: Fix undefined variable in _FetchOne 2022-12-08 06:29:00 +00:00
upload.py upload: track projects by path, rather than name 2022-11-14 21:58:10 +00:00
version.py project: simplify GetRemote a bit 2022-08-17 16:54:21 +00:00