allegro/axion-release-plugin

Warn on shallow clone

Open

#501 opened on Jun 27, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Groovy (161 forks)batch import
good-first-issuehacktoberfest

Repository metrics

Stars
 (628 stars)
PR merge metrics
 (Avg merge 2d 7h) (8 merged PRs in 30d)

Description

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.

Contributor guide