Skip to content
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

git dm misleading error if 0 branches #1072

Open
Rudxain opened this issue Aug 10, 2024 · 0 comments
Open

git dm misleading error if 0 branches #1072

Rudxain opened this issue Aug 10, 2024 · 0 comments

Comments

@Rudxain
Copy link

Rudxain commented Aug 10, 2024

It prints "fatal: branch name required", if there are 0 branches to delete, because the pipe isn't "feeding" it any names.

According to GNU's xargs --help (from findutils), this is an easy fix:

-r, --no-run-if-empty        if there are no arguments, then do not run COMMAND;
                                 if this option is not given, COMMAND will be
                                 run at least once

IDK, if this works for other implementations

@Rudxain Rudxain changed the title git dm isn't 100% idempotent git dm is almost idempotent Aug 10, 2024
@Rudxain Rudxain changed the title git dm is almost idempotent git dm misleading error when 0 branches Aug 10, 2024
@Rudxain Rudxain changed the title git dm misleading error when 0 branches git dm misleading error if 0 branches Aug 10, 2024
Rudxain pushed a commit to Rudxain/dotfiles that referenced this issue Aug 10, 2024
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

No branches or pull requests

1 participant