Skip to content

Commit

Permalink
Merge pull request #15 from ThreeDotsLabs/fix-clone
Browse files Browse the repository at this point in the history
  • Loading branch information
m110 committed Feb 29, 2024
2 parents f7d50bd + 1626b95 commit 63e1cb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions trainings/clone.go
Expand Up @@ -40,11 +40,6 @@ func (h *Handlers) Clone(ctx context.Context, executionID string) error {
return errors.Wrap(err, "can't write training config")
}

err = addModuleToWorkspace(pwd, resp.Dir)
if err != nil {
logrus.WithError(err).Warn("Failed to add module to workspace")
}

files := &genproto.NextExerciseResponse{
TrainingStatus: genproto.NextExerciseResponse_IN_PROGRESS,
Dir: resp.Dir,
Expand All @@ -57,5 +52,10 @@ func (h *Handlers) Clone(ctx context.Context, executionID string) error {
return err
}

err = addModuleToWorkspace(pwd, resp.Dir)
if err != nil {
logrus.WithError(err).Warn("Failed to add module to workspace")
}

return nil
}

0 comments on commit 63e1cb0

Please sign in to comment.