X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7500-commit.sh;h=49c1922dde3c7d46dfc1fbe7d1a99756714dd24f;hb=13208572fbe8838fd8835548d7502202d1f7b21d;hp=cf389b81da041e6bcbc7d20cd367b4274001353f;hpb=761e8566cb072047e836f1d7f50d3c0f67d7eb00;p=git.git diff --git a/t/t7500-commit.sh b/t/t7500-commit.sh index cf389b81d..49c1922dd 100755 --- a/t/t7500-commit.sh +++ b/t/t7500-commit.sh @@ -122,7 +122,19 @@ test_expect_success 'using alternate GIT_INDEX_FILE (2)' ' ) && cmp .git/index saved-index >/dev/null +' +cat > expect << EOF +zort +Signed-off-by: C O Mitter +EOF + +test_expect_success '--signoff' ' + echo "yet another content *narf*" >> foo && + echo "zort" | + GIT_EDITOR=../t7500/add-content git commit -s -F - foo && + git cat-file commit HEAD | sed "1,/^$/d" > output && + diff expect output ' test_done