combine line 42 and 44
This commit is contained in:
parent
b989cf6a04
commit
7323af1ad5
@ -39,9 +39,7 @@ class SemVer(object):
|
||||
b = subprocess.Popen(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], stdout=subprocess.PIPE,
|
||||
cwd='.')
|
||||
message = str(p.stdout.read())
|
||||
br = b.stdout.read().decode('utf-8')
|
||||
#remove newline
|
||||
branch=br.rstrip()
|
||||
br = b.stdout.read().decode('utf-8').rstrip()
|
||||
print('Main branch is ' + branch)
|
||||
matches = self.GET_COMMIT_MESSAGE.search(message)
|
||||
if matches:
|
||||
|
Loading…
Reference in New Issue
Block a user