axion-release-plugin icon indicating copy to clipboard operation
axion-release-plugin copied to clipboard

Deleted files are not committed

Open tanvi-zwei opened this issue 4 years ago • 1 comments

Hi, I'm currently trying to modify and delete files in post release hooks. Modifications and additions are committed and pushed successfully. Files are deleted but I cannot manage to commit the deletions. Is there such a possibility to do it in post release hook? If not perhaps it would be possible to add a property 'all' to ScmProperties to propagate it to Git? I mean like this:

boolean isAll = properties.getAll();
jgitRepository.commit().setAll(isAll).setMessage(message).call();

That would be really helpful

Thanks a lot!

tanvi-zwei avatar Nov 01 '21 22:11 tanvi-zwei

Hi @tanvi-zwei! If we allowed people to react on post-release hook, we should not be limiting its capabilities. It looks like an oversight for me, but gonna have to check code history - maybe it was intentional.

bgalek avatar Nov 02 '21 08:11 bgalek