Skip to content

Commit

Permalink
fix a bug where repeated git commands were allowed in esm_master (#1236)
Browse files Browse the repository at this point in the history
(cherry picked from commit 43addc2)
  • Loading branch information
mandresm committed Dec 2, 2024
1 parent 595f0b4 commit a60aa8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/esm_master/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a60aa8d

Please sign in to comment.