kugetsu destroy --base -y fails with "target is required" in v0.2.9 #183
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
In v0.2.9,
kugetsu destroy --base -yfails withError: target is required.Root cause:
cmd_destroy()inkugetsu-session.shline 482 setstarget=""when= "--base". Then line 490 checksif [ -z "" ]which is now true and exits before reaching line 517 where--baseis actually handled.Affected versions: v0.2.9
Reproduction
Fix
Remove or restructure the early
target=""assignment on line 482-484. The--basehandling at line 517 should be reached directly.