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

Fix: "git rm" fails when publish branch is empty #24

Merged
merged 1 commit into from
Sep 15, 2019

Conversation

blue-jam
Copy link
Contributor

When a publish branch exists and it has no files,
git rm -r '*' fails with

fatal: pathspec '*' did not match any files

--ignore-unmatch option let git exit with a zero status in this case.

When a publish branch exists and it has no files,
`git rm -r '*'` fails with
```
fatal: pathspec '*' did not match any files
```

`--ignore-unmatch` option let git exit with a zero status in this case.

Reference: https://git-scm.com/docs/git-rm#Documentation/git-rm.txt---ignore-unmatch
@peaceiris
Copy link
Owner

Thank you so much!

@peaceiris peaceiris self-requested a review September 15, 2019 16:05
@peaceiris peaceiris merged commit 47a6d63 into peaceiris:master Sep 15, 2019
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