Browse Source

sde-commit: prerender Signed-of-by when using -s

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 4 years ago
parent
commit
c65f1b17ac
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      bin/sde-commit

+ 9
- 1
bin/sde-commit

@ -62,7 +62,8 @@ while [ $# -gt 0 ]; do
-s) signed=true; shift ;;
--) shift; break ;;
*) echo_abort 1 "Unknown argument '$1', aborting."
-*) echo_abort 1 "Unknown argument '$1', aborting." ;;
*) break ;;
esac
shift
done
@ -174,6 +175,13 @@ if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then
echo_msg "Status:"
cat $tmpfile.status
if [ -s "$logfile" -a -n "${signed:-}" -a -e '.git' ]; then
cat <<-EOT >> $logfile
Signed-off-by: $(git config user.name) <$(git config user.email)>
EOT
fi
quit=0
until [ $quit -ne 0 ]; do

Loading…
Cancel
Save