Skip to content

Commit

Permalink
fix: dont set provider if using default app
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Jan 29, 2025
1 parent 4f40c59 commit 440f925
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions spacemk/commands/update_vcs_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ def update_vcs_config(vcs_config_file_path: str):
else:
project_root = None

stack.vcs.update(
{
"branch": stack_vcs_config.get("Branch"),
"namespace": stack_vcs_config.get("Namespace"),
"project_root": project_root,
"provider": stack_vcs_config.get("VCSProvider"),
"repository": stack_vcs_config.get("RepoName"),
}
)
new_vcs_config = {
"branch": stack_vcs_config.get("Branch"),
"namespace": stack_vcs_config.get("Namespace"),
"project_root": project_root,
"repository": stack_vcs_config.get("RepoName"),
}

if stack_vcs_config.get("VCSProvider") != "":
new_vcs_config["provider"] = stack_vcs_config.get("VCSProvider")

stack.vcs.update(new_vcs_config)

save_normalized_data(data)

0 comments on commit 440f925

Please sign in to comment.