File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 logger. warn(" Error getting git commit count since last tag: $e " )
2424 gitVersion = 999
2525 }
26- final boolean hasModifiedDeletedOrOtherFiles = ! " git ls-files -mdo --exclude-standard" . execute([], project. rootDir). text. trim(). empty
27- final boolean hasStagedFiles = ! " git diff-index --no-ext-diff --name-only --cached HEAD" . execute([], project. rootDir). text. trim(). empty
28- final boolean dirtyWorkingCopy = hasModifiedDeletedOrOtherFiles || hasStagedFiles
29- final gitDescription = dirtyWorkingCopy ? " ${ gitHash} -dirty" : gitHash
30- " ${ versionMajor} .${ versionMinor} .${ versionPatch} -${ gitVersion} -${ gitDescription} "
26+ " ${ versionMajor} .${ versionMinor} .${ versionPatch} -${ gitVersion} -${ gitHash} "
3127 }
3228 gitScmVersion = {
3329 final def command = " git rev-parse --verify --short=7 HEAD"
You can’t perform that action at this time.
0 commit comments