diff options
author | Jeff King <peff@peff.net> | 2014-06-25 17:42:17 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-25 15:01:06 -0700 |
commit | 958b2eb26c82f9d99d1fb4d3270601d0a18eaf38 (patch) | |
tree | a6d8a99d7915fcfb6fc542dbc0230d9457268f36 /t/t7510-signed-commit.sh | |
parent | aa4b78d483a918ebee810993e420b4697b0de4d3 (diff) | |
download | git-958b2eb26c82f9d99d1fb4d3270601d0a18eaf38.tar.gz |
move "%G" format test from t7510 to t6006jk/pretty-G-format-fixes
The final test in t7510 checks that "--format" placeholders
that look similar to GPG placeholders (but that we don't
actually understand) are passed through. That test was
placed in t7510, since the other GPG placeholder tests are
there. However, it does not have a GPG prerequisite, because
it is not actually checking any signed commits.
This causes the test to erroneously fail when gpg is not
installed on a system, however. Not because we need signed
commits, but because we need _any_ commit to run "git log".
If we don't have gpg installed, t7510 doesn't create any
commits at all.
We can fix this by moving the test into t6006. This is
arguably a better place anyway, because it is where we test
most of the other placeholders (we do not test GPG
placeholders there because of the infrastructure needed to
make signed commits).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7510-signed-commit.sh')
-rwxr-xr-x | t/t7510-signed-commit.sh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/t/t7510-signed-commit.sh b/t/t7510-signed-commit.sh index 9810242435..e97477a3b9 100755 --- a/t/t7510-signed-commit.sh +++ b/t/t7510-signed-commit.sh @@ -147,10 +147,4 @@ test_expect_success GPG 'show lack of signature with custom format' ' test_cmp expect actual ' -test_expect_success 'unused %G placeholders are passed through' ' - echo "%GX %G" >expect && - git log -1 --format="%GX %G" >actual && - test_cmp expect actual -' - test_done |