Skip to content

Commit a6a5fe3

Browse files
committed
Suppress verification messages
`log.showSignature` configuration and `--no-show-signature` option was added at git 2.10.0.
1 parent 5480a9c commit a6a5fe3

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUBYOPT = -
4545
RUN_OPTS = --disable-gems
4646

4747
GIT_IN_SRC = $(GIT) -C $(srcdir)
48-
GIT_LOG = $(GIT_IN_SRC) log
48+
GIT_LOG = $(GIT_IN_SRC) log --no-show-signature
4949
GIT_LOG_FORMAT = $(GIT_LOG) --pretty=format:
5050

5151
# GITPULLOPTIONS = --no-tags

configure.ac

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ AC_ARG_WITH(git,
113113
{
114114
test x"$HAVE_GIT" = xyes &&
115115
command -v "$GIT" > /dev/null &&
116-
# git 1.8.4 fails with `-C` as unknown option, but git 1.8.5
117-
# succeeds and exits by `--version`.
118-
$GIT -C . --version > /dev/null 2>&1
116+
# `git -C`: 1.8.5
117+
# `git log --no-show-signature`: 2.10.0
118+
AS_CASE([`$GIT -C . --version 2> /dev/null | sed 's/.* //'`],
119+
[0.*|1.*|2.@<:@0-9@:>@.*], [false],
120+
[true])
119121
} || HAVE_GIT=no GIT=never-use
120122
AC_SUBST(GIT)
121123
AC_SUBST(HAVE_GIT)

0 commit comments

Comments
 (0)