We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2880807 commit 058fff8Copy full SHA for 058fff8
Gruntfile.js
@@ -22,10 +22,11 @@ module.exports = function(grunt) {
22
var gi = grunt.config('gitinfo');
23
var lbc = gi.local.branch.current;
24
25
- var tag = (gi.tag == '') ? 'no_tag' : gi.tag;
+ var tags = (gi.tag == '') ? 'no_tag' : gi.tag;
26
+ tags = tags.split('\n').join(',');
27
var commitMsg = lbc.lastCommitMessage.slice(1, -1).split('\n')[0].replace(/"/g, '\\\"');
28
- var buildInfo = lbc.shortSHA + "/" + lbc.name + "/" + tag +
29
+ var buildInfo = lbc.shortSHA + "/" + lbc.name + "/" + tags +
30
" (" + lbc.lastCommitTime.slice(1, -1) + "; \'" + commitMsg + "'";
31
return { 'build_info': buildInfo };
32
}
0 commit comments