From beb8e93903487845829378215d0cd6c61cb8b95d Mon Sep 17 00:00:00 2001 From: Joel Watson Date: Fri, 12 May 2023 17:36:13 -0500 Subject: [PATCH] Fix bug where --scope was ignored in manual setup --- pkg/controllers/repo_config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/controllers/repo_config.go b/pkg/controllers/repo_config.go index abd725fe..309a154f 100644 --- a/pkg/controllers/repo_config.go +++ b/pkg/controllers/repo_config.go @@ -20,6 +20,7 @@ import ( "io/ioutil" "path/filepath" + "github.com/DopplerHQ/cli/pkg/configuration" "github.com/DopplerHQ/cli/pkg/models" "github.com/DopplerHQ/cli/pkg/utils" "gopkg.in/yaml.v3" @@ -72,7 +73,7 @@ func RepoConfig() (models.MultiRepoConfig, Error) { // If no config file exists, then this is for an interactive setup, so // return a MultiRepoConfig object containing an empty ProjectConfig object var repoConfig models.MultiRepoConfig - repoConfig.Setup = append(repoConfig.Setup, models.ProjectConfig{}) + repoConfig.Setup = append(repoConfig.Setup, models.ProjectConfig{Path: configuration.Scope}) return repoConfig, Error{} } return models.MultiRepoConfig{}, Error{}