Perform a shallow clone check on repos being used to generate version numbers

This commit is contained in:
Dan Hawkins 2019-08-01 08:57:53 +01:00
commit b6aa653aeb

View file

@ -14,7 +14,7 @@ def boolean isShallowClonedRepo(String gitrootpath) {
else {
isshallowclone = bat(returnStdout: true, script: "@git rev-parse --is-shallow-repository").trim().toBoolean()
}
echo "Repo at ${gitrootpath} is shallow cloned: Change count: ${isshallowclone}"
echo "Repo at ${gitrootpath} is shallow cloned: ${isshallowclone}"
}
return isshallowclone
}