From 055d0101ca9fd7f8e6b884f08fd6c5962729b3a9 Mon Sep 17 00:00:00 2001 From: Derek DeJonghe Date: Fri, 1 Jun 2018 13:53:13 -0400 Subject: [PATCH] bugfix --- semver/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semver/__init__.py b/semver/__init__.py index 6c3a72d..7d8b0a9 100644 --- a/semver/__init__.py +++ b/semver/__init__.py @@ -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: