diff --git a/internal/runners/refresh/refresh.go b/internal/runners/refresh/refresh.go index 3817921d23..1bbe1b1022 100644 --- a/internal/runners/refresh/refresh.go +++ b/internal/runners/refresh/refresh.go @@ -70,6 +70,8 @@ func (r *Refresh) Run(params *Params) error { return rationalize.ErrNoProject } + r.prime.SetProject(proj) + needsUpdate, err := runtime_helpers.NeedsUpdate(proj, nil) if err != nil { return errs.Wrap(err, "could not determine if runtime needs update") diff --git a/internal/runners/shell/shell.go b/internal/runners/shell/shell.go index 0426c173fc..134081b518 100644 --- a/internal/runners/shell/shell.go +++ b/internal/runners/shell/shell.go @@ -80,6 +80,8 @@ func (u *Shell) Run(params *Params) error { return locale.WrapError(err, "err_shell_cannot_load_project") } + u.prime.SetProject(proj) + commitID, err := localcommit.Get(proj.Dir()) if err != nil { return errs.Wrap(err, "Unable to get local commit")