Repair a repository ready for versioning¶
experimental
Sometimes, a git repository is not in the ideal state for versioning, which can impact how nsv
behaves.
Fixing a shallow clone¶
A git shallow clone limits the amount of history fetched from a repository. It provides performance benefits for day-to-day use but can massively impact nsv
as it determines the next semantic version. It is especially problematic when working with a monorepo.
Fixing it is a breeze and can be done in one of two ways:
-
You can let
nsv
do it for you: -
You can fix it through your CI provider of choice. Please refer to their documentation.