summaryrefslogtreecommitdiff
path: root/t/t7510-signed-commit.sh
Commit message (Collapse)AuthorAgeFilesLines
* t7510: do not fail when gpg warns about insecure memorymg/verify-commitKyle J. McKay2015-03-101-2/+2
| | | | | | | | | | | | | | | | Depending on how gpg was built, it may issue the following message to stderr when run: Warning: using insecure memory! When the test is collecting gpg output it is therefore not enough to just match on a "gpg: " prefix it must also match on a "Warning: " prefix wherever it needs to match lines that have been produced by gpg. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Acked-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* t7510: test verify-commitMichael J Gruber2014-06-231-1/+19
| | | | | | | | | | | | | | | This mixes the "git verify-commit" tests in with the "git show --show-signature" tests, to keep the tests more readable. The tests already mix in the "call show" tests with the "verify" tests. So in case of a test beakage, a '-v' run would be needed to reveal the exact point of breakage anyway. Additionally, test the actual output of "git verify-commit" and "git show --show-signature" and compare to "git cat-file". Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* t7510: exit for loop with test resultMichael J Gruber2014-06-231-2/+2
| | | | | | | | | | | t7510 uses for loops in a subshell, which need to make sure that the test returns with the appropriate error code from within the loop. Restructure the loops as the usual && chains with a single point of "exit 1" at the end of the loop to make this clearer. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* test the commit.gpgsign config optionnv/commit-gpgsign-configNicolas Vigier2014-02-241-4/+21
| | | | | | | | | | | | | | | | The tests are checking that : - when commit.gpgsign is true, "git commit" creates signed commits - when commit.gpgsign is false, "git commit" creates unsigned commits - when commit.gpgsign is true, "git commit --no-gpg-sign" creates unsigned commits - when commit.gpgsign is true, "git rebase -f" creates signed commits Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* commit --amend -S: strip existing gpgsig headersJunio C Hamano2012-01-051-1/+10
| | | | | | | | Any existing commit signature was made against the contents of the old commit, including its committer date that is about to change, and will become invalid by amending it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
* test "commit -S" and "log --show-signature"Junio C Hamano2011-11-121-0/+71
Signed-off-by: Junio C Hamano <gitster@pobox.com>