2
0
mirror of https://github.com/s1lentq/ReGameDLL_CS.git synced 2025-04-07 10:19:00 +03:00
This commit is contained in:
s1lent 2017-05-06 21:44:22 +07:00
parent 6e7bb15807
commit 299ee99120
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

@ -16,7 +16,7 @@ idea {
def gitInfo = GitVersioner.versionForDir(project.rootDir)
RegamedllVersionInfo versionInfo
if (gitInfo.tag && gitInfo.tag[0] == 'v') {
if (gitInfo && gitInfo.tag && gitInfo.tag[0] == 'v') {
def m = gitInfo.tag =~ /^v(\d+)\.(\d+)(\.(\d+))?$/
if (!m.find()) {
throw new RuntimeException("Invalid git version tag name ${gitInfo.tag}")