multicloud-ops / build-harness-extensions

1 stars 8 forks source link

shallow clones can break git describe #30

Closed hassenius closed 4 years ago

hassenius commented 4 years ago

Travis default clone statement is git clone --depth=50 which breaks git describe when there's more than 50 commits since last tag. The fix is to do git fetch --unshallow to pull enough info to describe. There may also be other approaches like fetch --tags that may be more optimal