We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5afc060 commit be1920dCopy full SHA for be1920d
tools/check-signed-off.sh
@@ -22,13 +22,7 @@ then
22
commit_hash=`git show -s --format=%h HEAD | head -1`
23
elif [ "${#parent_hashes[@]}" -eq 2 ]
24
then
25
- if git merge-base --is-ancestor "${parent_hashes[@]}"
26
- then
27
- commit_hash=${parent_hashes[1]}
28
- else
29
- echo "$0: cannot handle merge commit where first parent ${parent_hashes[0]} is not ancestor of second parent ${parent_hashes[1]}"
30
- exit 1
31
- fi
+ commit_hash=${parent_hashes[1]}
32
else
33
echo "$0: cannot handle commit with ${#parent_hashes[@]} parents ${parent_hashes[@]}"
34
exit 1
0 commit comments