diff options
Diffstat (limited to 'internal/executor/container.go')
| -rw-r--r-- | internal/executor/container.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/executor/container.go b/internal/executor/container.go index 5e1a026..8b244c6 100644 --- a/internal/executor/container.go +++ b/internal/executor/container.go @@ -109,6 +109,10 @@ func (r *ContainerRunner) Run(ctx context.Context, t *task.Task, e *storage.Exec } } } + // Fall back to task-level BranchName (e.g. set explicitly by executor or tests). + if storyBranch == "" { + storyBranch = t.BranchName + } // 2. Clone repo into workspace if not resuming. // git clone requires the target directory to not exist; remove the MkdirTemp-created dir first. |
