File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,22 +10,22 @@ git fetch origin
1010
1111BASE=$( git merge-base HEAD origin/$MAIN_BRANCH )
1212
13- # List commits after the common ancestor missing "Signed-off-by"
14- UNSIGNED_COMMITS=$( git rev-list $BASE ..HEAD | while read commit; do
15- if ! git show --quiet --format=%B $commit | grep -q " Signed-off-by:" ; then
16- echo $commit
17- fi
18- done)
19-
20- if [ -z " $UNSIGNED_COMMITS " ]; then
21- echo " No unsigned commits to sign off."
22- exit 0
23- fi
13+ # # List commits after the common ancestor missing "Signed-off-by"
14+ # UNSIGNED_COMMITS=$(git rev-list $BASE..HEAD | while read commit; do
15+ # if ! git show --quiet --format=%B $commit | grep -q "Signed-off-by:"; then
16+ # echo $commit
17+ # fi
18+ # done)
19+ #
20+ # if [ -z "$UNSIGNED_COMMITS" ]; then
21+ # echo "No unsigned commits to sign off."
22+ # exit 0
23+ # fi
2424
2525# Rebase with signoff
2626git rebase --signoff $BASE
2727
28- echo " Newly signed commits:"
29- for commit in $UNSIGNED_COMMITS ; do
30- git log --format=" * %h %s" -n 1 $commit
31- done
28+ # echo "Newly signed commits:"
29+ # for commit in $UNSIGNED_COMMITS; do
30+ # git log --format="* %h %s" -n 1 $commit
31+ # done
You can’t perform that action at this time.
0 commit comments