-
Notifications
You must be signed in to change notification settings - Fork 66
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
Deleting files produces empty commits #266
Comments
Thanks for a concise repo :D This does indeed seems like a bug. I'm unable to repo, or fix right now as I don't have access to a dev computer. But can you try to run with --git-type=cmd and see if it gives the same result? |
Will try later! I was also wondering whether maybe using |
Running git commands should not be needed, and could cause strange behavior. |
Indeed |
Could be, or more likely how multi-gitter is using it. But one of the two guaranteed Can't see anything obvious here: multi-gitter/internal/git/gogit/git.go Line 91 in 5dfd6d9
But will have to look closer when I have access to a computer:) |
Seems that this is actually a go-git issue: go-git/go-git#223 There is a linked workaround that I will test later this week to see if it works (or if you want to try it out). |
Added a fix here: #273 with a test that fails without the fix. |
Included in release v0.42.3 🎉 |
Describe the bug
Deleting a file produces empty commits instead of deleting them
To Reproduce
Run the following command on a test repository containing a
README.md
(you can fork mine):Expected behavior
I expect a commit that has
README.md
deleted.What happens instead
The output looks normal:
But you get a PR with an empty commit. Which is bad because the
README.md
should be deleted, but also bad because empty commits shouldn't be added by multi-gitter.The text was updated successfully, but these errors were encountered: