Skip to content

Commit 49bd455

Browse files
Create app.py
1 parent c114229 commit 49bd455

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bench/app.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,13 @@ def pull_apps(apps=None, bench_path=".", reset=False):
10331033
bench.run(f"git fetch {remote} --unshallow", cwd=app_dir)
10341034

10351035
branch = get_current_branch(app, bench_path=bench_path)
1036+
1037+
# --- FIX: Skip update if detached HEAD ---
1038+
if not branch:
1039+
print(f"App {app} is pinned to a specific version. Skipping update.")
1040+
continue
1041+
# -----------------------------------------
1042+
10361043
logger.log(f"pulling {app}")
10371044
if reset:
10381045
reset_cmd = f"git reset --hard {remote}/{branch}"

0 commit comments

Comments
 (0)