Merge pull request #9852 from RonLek/master
Proper Error Handling for Build Numbers of Downloaded Sources (Non-Git repositories).
This commit is contained in:
commit
abda2b289e
@ -449,6 +449,8 @@ gulp.task('buildnumber', function (done) {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
// Build number is the number of commits since base version
|
// Build number is the number of commits since base version
|
||||||
buildNumber = stdout ? stdout.match(/\n/g).length : 0;
|
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);
|
console.log('Extension build number: ' + buildNumber);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user