File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7
7
# Signs all previous commits with a DCO signoff as described in the
8
8
# CONTRIBUTING.md document.
9
9
10
+ _current_branch=$( git branch | sed -n -e ' s/^\* \(.*\)/\1/p' )
11
+ hash1=$( git show-ref --heads -s master)
12
+ hash2=$( git merge-base master $_current_branch )
13
+
14
+ if [ " ${hash1} " != " ${hash2} " ]; then
15
+ echo " You branch is not rebased with master. Please rebase first:"
16
+ echo " "
17
+ echo " git rebase master"
18
+ exit 1
19
+ fi
10
20
11
21
echo " We found the following commits since master:"
12
22
echo " "
@@ -29,7 +39,6 @@ echo ""
29
39
30
40
_signoff=" sign: $( git config --get user.name) <$( git config --get user.email) >"
31
41
_commit_count=$( git rev-list --count --no-merges master..)
32
- _current_branch=$( git branch | sed -n -e ' s/^\* \(.*\)/\1/p' )
33
42
34
43
git config trailer.sign.key " Signed-off-by"
35
44
git filter-branch -f --msg-filter \
You can’t perform that action at this time.
0 commit comments