mirror of https://github.com/apache/lucene.git
LUCENE-7155: Script addVersion.py does not detect the new naming convention for bugfix branches
This commit is contained in:
parent
d08f327a7f
commit
6e446c0b92
|
@ -107,9 +107,9 @@ def find_branch_type():
|
|||
|
||||
if branchName == b'master':
|
||||
return 'master'
|
||||
if branchName.startswith(b'branch_'):
|
||||
if re.match(r'branch_(\d+)x', branchName.decode('UTF-8')):
|
||||
return 'stable'
|
||||
if branchName.startswith(b'lucene_solr_'):
|
||||
if re.match(r'branch_(\d+)_(\d+)', branchName.decode('UTF-8')):
|
||||
return 'release'
|
||||
raise Exception('Cannot run bumpVersion.py on feature branch')
|
||||
|
||||
|
|
Loading…
Reference in New Issue