This commit is contained in:
Derek DeJonghe 2018-06-01 13:53:13 -04:00
parent 68b04de276
commit 055d0101ca

View File

@ -39,7 +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').rstrip()
branch = b.stdout.read().decode('utf-8').rstrip()
print('Main branch is ' + branch)
matches = self.GET_COMMIT_MESSAGE.search(message)
if matches: