Lock the short commit IDs used to 7 characters

To prevent AppVeyor's usage of Git v2.11.0 from causing it to deploy
different Bintray versions from Travis, which still uses Git v1.8. Fixes
#744.
This commit is contained in:
Oliver Hamlet
2017-01-06 21:49:40 +00:00
parent 5a1ccb159d
commit c1838fa5e3
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -14,6 +14,7 @@ function getGitDescription() {
'describe',
'--tags',
'--long',
'--abbrev=7',
])).slice(0, -1);
let branch = String(helpers.safeExecFileSync('git', [
'rev-parse',