Skip to content

Commit

Permalink
fix(cli): refetch workspace source if recreate cli option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed Feb 19, 2024
1 parent 6cccd29 commit b749ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/workspace/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func prepareWorkspace(ctx context.Context, workspaceInfo *provider2.AgentWorkspa
exists, err := InitContentFolder(workspaceInfo, log)
if err != nil {
return err
} else if exists {
} else if exists && !workspaceInfo.CLIOptions.Recreate {
log.Debugf("Workspace exists, skip downloading")
return nil
}
Expand Down

0 comments on commit b749ce5

Please sign in to comment.