Merge pull request #9852 from RonLek/master

Proper Error Handling for Build Numbers of Downloaded Sources (Non-Git repositories).
This commit is contained in:
Tim van der Meij 2018-06-29 23:12:03 +02:00 committed by GitHub
commit abda2b289e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,6 +449,8 @@ gulp.task('buildnumber', function (done) {
if (!err) {
// Build number is the number of commits since base version
buildNumber = stdout ? stdout.match(/\n/g).length : 0;
} else {
console.log('This is not a Git repository; using default build number.');
}
console.log('Extension build number: ' + buildNumber);