Skip to content

Commit

Permalink
Fix merge commit detection: only for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 28, 2017
1 parent bf42a52 commit f8b79fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codecov
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,11 @@ fi
if [ "$commit_o" = "" ];
then
# merge commit -> actual commit
mc=$(git show --no-patch --format="%P" 2>/dev/null || echo '')
mc=
if [ -n "$pr" ] && [ "$pr" != false ];
then
mc=$(git show --no-patch --format="%P" 2>/dev/null || echo '')
fi
if [[ "$mc" =~ ^[a-z0-9]{40}[[:space:]][a-z0-9]{40}$ ]];
then
say " Fixing merge commit SHA"
Expand Down

0 comments on commit f8b79fa

Please sign in to comment.