Skip to content

Fix force flag when no deployment exists (#153)#199

Closed
sania123b wants to merge 1 commit intometacall:masterfrom
sania123b:fix-force-empty-deploy
Closed

Fix force flag when no deployment exists (#153)#199
sania123b wants to merge 1 commit intometacall:masterfrom
sania123b:fix-force-empty-deploy

Conversation

@sania123b
Copy link
Copy Markdown

Fixes #153.

Previously, using --force would fail when no existing deployment
was found because repo[0] was accessed without checking length.

Now:

  • Checks repo.length > 0 before deletion
  • Proceeds with normal deployment if no existing deployment is found
  • Adds defensive checks for subscription details

Build and lint pass successfully.

@viferga
Copy link
Copy Markdown
Member

viferga commented Mar 9, 2026

Add tests.

@viferga viferga closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Force flag does not work properly

2 participants