diff --git a/gulpfile.js b/gulpfile.js index c7e66a204..919201ee2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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);