ci_run_n_monitor: Allow the upstream format to not exist

When pushing directly to a fork, the upstream branch does not exist and thus
returns an empty string.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27567>
This commit is contained in:
Corentin Noël
2024-02-12 10:51:47 +01:00
parent 72886cbefa
commit b0af2b30ab

View File

@@ -435,6 +435,7 @@ if __name__ == "__main__":
branch_name,
]).decode('ascii').strip()
if tracked_remote:
remote_rev = check_output([
'git', 'rev-parse', tracked_remote,
]).decode('ascii').strip()