#!/bin/sh test_description='git rebase --signoff This test runs git rebase --signoff and make sure that it works. ' . ./test-lib.sh # A simple file to commit cat >file <expected-signed <.*/>/") EOF # Expected commit message after rebase without --signoff (or with --no-signoff) cat >expected-unsigned < actual && test_cmp expected-signed actual ' test_expect_success 'rebase --no-signoff does not add a sign-off line' ' git commit --amend -m "first" && git rbs --no-signoff HEAD^ && git cat-file commit HEAD | sed -e "1,/^\$/d" > actual && test_cmp expected-unsigned actual ' test_done