From 04acfb9673c641f6c3f511bfb88394d8dcb62c9f Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Fri, 21 Aug 2026 15:02:13 -0700 Subject: [PATCH] fix: remove function-level 'import time as _time' that shadowed the module import The in-function import made _time local to all of _cmd_update_impl, so the orphan-backend reap path (which runs earlier in the function) hit UnboundLocalError before the import line executed. The module-level 'import time as _time' at the top of update_cmd.py already covers the divergence-merge safety tag. --- hermes_cli/update_cmd.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hermes_cli/update_cmd.py b/hermes_cli/update_cmd.py index 3b5acaa514..021b7656fe 100644 --- a/hermes_cli/update_cmd.py +++ b/hermes_cli/update_cmd.py @@ -5895,8 +5895,6 @@ def _cmd_update_impl(args, gateway_mode: bool): or "" ).strip() if _cur_branch and _cur_branch != branch: - import time as _time - print( f" ⚠ Checkout is on custom branch '{_cur_branch}' — " f"merging origin/{branch} instead of resetting so local commits survive..."