File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 14
14
echo Commits: $( git rev-list ${TRAVIS_COMMIT_RANGE} )
15
15
16
16
for commit in $( git rev-list ${TRAVIS_COMMIT_RANGE} ) ; do
17
+ echo
17
18
echo Looking at commit: $commit
19
+ parents=$( git log -n 1 --format=" %P" $commit )
20
+ if [[ " $parents " == * " " * ]]; then
21
+ echo " Skipping a merge commit"
22
+ continue
23
+ fi
24
+
18
25
set +e
19
26
git log --format=" %B" -n 1 $commit | \
20
- grep -E ' ^Signed-off-by: ' # ([^<]+) <([^<>@]+@[^<>]+)>$' > /dev/null
27
+ grep -E ' ^Signed-off-by: ' # ([^<]+) <([^<>@]+@[^<>]+)>$' > /dev/null 2>&1
21
28
if test ${PIPESTATUS[1]} -ne 0; then
22
29
set -e
23
- echo " Commit $commit is missing a DCO "
24
- echo " ***** Commit msg: "
30
+ echo " Commit msg: "
31
+ echo " ------------------------------------ "
25
32
git log --format=" %B" -n 1 $commit
33
+ echo " ------------------------------------"
34
+ echo " **** Commit $commit is missing a DCO"
26
35
exit 1
27
36
fi
28
37
set -e
29
38
30
39
done
40
+ echo
41
+ echo " **** All commits are signed!"
31
42
exit 0
You can’t perform that action at this time.
0 commit comments