Browse Source

Merge pull request #1466 from blink1073/git-describe

Allow git describe to fail during build
Steven Silvester 8 years ago
parent
commit
0fad53f968
1 changed files with 6 additions and 1 deletions
  1. 6 1
      jupyterlab/webpack.config.js

+ 6 - 1
jupyterlab/webpack.config.js

@@ -12,7 +12,12 @@ var webpack = require('webpack');
 
 console.log('Generating bundles...');
 
-var notice = childProcess.execSync('git describe', { encoding: 'utf8' });
+try {
+  var notice = childProcess.execSync('git describe', { encoding: 'utf8' });
+} catch (e) {
+  var notice = 'unknown';
+}
+
 
 buildExtension({
   name: 'main',