combine line 42 and 44

This commit is contained in:
Derek DeJonghe 2018-05-25 15:08:42 -04:00
parent b989cf6a04
commit 7323af1ad5

View File

@ -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: