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

Warn on shallow clone

Open david0 opened this issue 2 years ago • 3 comments

CI servers typically do a shallow clone by default without the complete history.

Especially Gitlab CI clones by default the last 20 commits which makes this plugin work as expected when testing and then suddenly stopping working when there are more then 20 commits.

It would be helpful to show a big warning or even refuse to work when .git/shallow exists to fail as early as possilbe.

david0 avatar Jun 27 '22 09:06 david0

@david0 this is a cool idea, you're welcome to make a PR :)

bgalek avatar Aug 06 '22 22:08 bgalek

Can I try?

SaketKaswa20 avatar Oct 02 '23 15:10 SaketKaswa20

@SaketKaswa20 sure!

bgalek avatar Oct 04 '23 13:10 bgalek