diff options
author | Gavin Mak <gavinmak@google.com> | 2023-07-22 02:56:44 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-07-28 18:55:04 +0000 |
commit | 1d2e99d0289a36e8c2a53ff3bf5690f0f780ba63 (patch) | |
tree | 2df20c20871fa0dceb8d545e76b75ff76b9e755d /main.py | |
parent | c657844efe40b97700c3654989bdbe3a33e409d7 (diff) | |
download | git-repo-1d2e99d0289a36e8c2a53ff3bf5690f0f780ba63.tar.gz |
sync: Track last completed fetch/checkout
Save the latest time any project is fetched and checked out. This will
be used to detect partial checkouts.
Bug: b/286126621
Change-Id: I53b264dc70ba168d506076dbd693ef79a696b61d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/380514
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -427,7 +427,8 @@ class _Repo(object): | |||
427 | if not ok: | 427 | if not ok: |
428 | exception_name = type(e).__name__ | 428 | exception_name = type(e).__name__ |
429 | git_trace2_event_log.ErrorEvent( | 429 | git_trace2_event_log.ErrorEvent( |
430 | f"RepoExitError:{exception_name}") | 430 | f"RepoExitError:{exception_name}" |
431 | ) | ||
431 | raise | 432 | raise |
432 | 433 | ||
433 | try: | 434 | try: |