Skip to content

Commit

Permalink
Merge pull request #396 from DopplerHQ/watsonian/fix-setup-scope-bug
Browse files Browse the repository at this point in the history
Fix bug where --scope was ignored in manual setup
  • Loading branch information
Piccirello authored May 12, 2023
2 parents 5a3f027 + beb8e93 commit b27caeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/repo_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{}
Expand Down

0 comments on commit b27caeb

Please sign in to comment.