diff --git a/appveyor.yml b/appveyor.yml index 92114608..3ded1a41 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -71,7 +71,7 @@ after_test: - cd %APPVEYOR_BUILD_FOLDER% - C:\Python27\Scripts\sphinx-build -b html docs build\docs\html - ps: | - $env:GIT_DESCRIBE = ((git describe --tags --long) | Out-String) -replace "`n|`r", "" + $env:GIT_DESCRIBE = ((git describe --tags --long --abbrev=7) | Out-String) -replace "`n|`r", "" if ($env:PLATFORM -eq 'Win32') { $env:PATH = "$env:PATH;C:\cygwin\bin\" node scripts\potomo.js diff --git a/scripts/archive.js b/scripts/archive.js index 3d2efd0f..4b97d535 100644 --- a/scripts/archive.js +++ b/scripts/archive.js @@ -14,6 +14,7 @@ function getGitDescription() { 'describe', '--tags', '--long', + '--abbrev=7', ])).slice(0, -1); let branch = String(helpers.safeExecFileSync('git', [ 'rev-parse',