Skip to content

Commit

Permalink
Merge pull request #3068 from shockey/bug/3027-gitless-building
Browse files Browse the repository at this point in the history
try/catch git describe call
  • Loading branch information
shockey authored May 11, 2017
2 parents e2003ae + ee36693 commit bb2e75d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ const {gitDescribeSync} = require('git-describe');
var loadersByExtension = require('./build-tools/loadersByExtension')

var pkg = require('./package.json')
const gitInfo = gitDescribeSync(__dirname)

let gitInfo

try {
gitInfo = gitDescribeSync(__dirname)
} catch(e) {
gitInfo = {
hash: 'noGit',
dirty: false
}
}

module.exports = function(options) {

Expand Down

0 comments on commit bb2e75d

Please # to comment.