Skip to content

Commit 5413a86

Browse files
committed
check for merge commit on all CI
1 parent b26a450 commit 5413a86

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

codecov/__init__.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
pass
2525

2626

27-
version = VERSION = __version__ = '2.0.3'
27+
version = VERSION = __version__ = '2.0.4'
2828

2929
COLOR = True
3030

@@ -287,12 +287,6 @@ def main(*argv, **kwargs):
287287
if language == 'python' and os.getenv('TOXENV'):
288288
include_env.add('TOXENV')
289289

290-
# Merge Commits
291-
# -------------
292-
res = try_to_run('git log -1 --pretty=%B')
293-
if res and is_merge_commit.match(res.strip()):
294-
query['commit'] = res.split(' ')[1]
295-
296290
# --------
297291
# Codeship
298292
# --------
@@ -481,6 +475,13 @@ def main(*argv, **kwargs):
481475
if codecov.commit:
482476
query['commit'] = codecov.commit
483477

478+
else:
479+
# Merge Commits
480+
# -------------
481+
res = try_to_run('git log -1 --pretty=%B')
482+
if res and is_merge_commit.match(res.strip()):
483+
query['commit'] = res.split(' ')[1]
484+
484485
if codecov.slug:
485486
query['slug'] = codecov.slug
486487

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup
33
import sys
44

5-
version = '2.0.3'
5+
version = '2.0.4'
66
classifiers = ["Development Status :: 5 - Production/Stable",
77
"Environment :: Plugins",
88
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)