Skip to content

Already synced exits with code 0#41

Merged
miku merged 2 commits intomiku:masterfrom
titabo2k:already_synced_exit
Jan 30, 2026
Merged

Already synced exits with code 0#41
miku merged 2 commits intomiku:masterfrom
titabo2k:already_synced_exit

Conversation

@titabo2k
Copy link
Contributor

Fixes exit code when repository is already synced. Previously exited with code 1 due to wrapped error not matching switch case. Now uses errors.Is() to properly detect ErrAlreadySynced and exits with code 0. Adds test coverage for the already-synced scenario.

Replace switch statement with errors.Is() to properly detect
ErrAlreadySynced in wrapped errors. Previously exited with code 1 due to
failed direct error comparison.
@miku miku merged commit 3fac22b into miku:master Jan 30, 2026
@miku
Copy link
Owner

miku commented Jan 30, 2026

Perfect, thank you! You fix is included in the latest release 0.4.20

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.

2 participants