Skip to content

fix(cli): ignore missing sections when removing configuration #1455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2025

Conversation

sudoforge
Copy link
Contributor

@sudoforge sudoforge commented May 19, 2025

This change fixes an error typically encountered in the git-bug-wipe
command, caused by overly zealous implementations of
//repository:config.go%ConfigWrite.RemoveAll(). This change refactors
these implementations to only attempt to remove sections that exist,
and ignore non-existent sections.

Closes: #1451
Change-Id: I66e710239915c8601dd70a78ae65eb625e093ef6

…NG.md

Change-Id: Ie21eb3761c8e632d1ff66c5b3fc2474f97e3364e
@sudoforge sudoforge force-pushed the I66e710239915c8601dd70a78ae65eb625e093ef6 branch from 41b2ab5 to c7e24ea Compare May 19, 2025 04:47
This change fixes an error typically encountered in the `git-bug-wipe`
command, caused by overly zealous implementations of
//repository:config.go%ConfigWrite.RemoveAll(). This change refactors
these implementations to only attempt to remove sections that exist,
and ignore non-existent sections.

Closes: #1451
Change-Id: I66e710239915c8601dd70a78ae65eb625e093ef6
@sudoforge sudoforge force-pushed the I66e710239915c8601dd70a78ae65eb625e093ef6 branch from c7e24ea to 257ba78 Compare May 19, 2025 04:48
@sudoforge sudoforge merged commit ddb22a2 into master May 19, 2025
12 checks passed
@sudoforge sudoforge deleted the I66e710239915c8601dd70a78ae65eb625e093ef6 branch May 19, 2025 04:54
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.

wipe command not working
1 participant