From a60aa8dd5284669cfd157d75404970c741501af8 Mon Sep 17 00:00:00 2001 From: Miguel Andres-Martinez Date: Mon, 2 Dec 2024 09:15:01 +0100 Subject: [PATCH] fix a bug where repeated git commands were allowed in esm_master (#1236) (cherry picked from commit 43addc21daa4e0bb95e8ffff04ab3c55010d5d71) --- src/esm_master/task.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/esm_master/task.py b/src/esm_master/task.py index 661f1a8f6..1c2173b90 100644 --- a/src/esm_master/task.py +++ b/src/esm_master/task.py @@ -268,6 +268,9 @@ def assemble_command_list(self): if task.todo in ["get"]: if task.package.command_list[task.todo] is not None: for command in task.package.command_list[task.todo]: + # Fix #1236: avoid repeated get commands + if command in command_list: + continue command_list.append(command) real_command_list.append(command)