Skip to content

Commit e163379

Browse files
committed
Merge pull request #2 from mlandauer/master
If repository has no annotated tags then fallback to revision for VERSION
2 parents 96a88a6 + a56eb45 commit e163379

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function GitRevisionPlugin () {}
44

55
GitRevisionPlugin.prototype.apply = function (compiler) {
66
buildFile(compiler, 'git rev-parse HEAD', 'COMMITHASH')
7-
buildFile(compiler, 'git describe', 'VERSION')
7+
buildFile(compiler, 'git describe --always', 'VERSION')
88
}
99

1010
module.exports = GitRevisionPlugin

0 commit comments

Comments
 (0)