From: Martin Liska Date: Thu, 11 Jun 2020 08:02:26 +0000 (+0200) Subject: prepare-commit-hook: Use gcc-config.diff-file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ff57396d6dea4976b05902919070aa0e562354d;p=gcc.git prepare-commit-hook: Use gcc-config.diff-file. contrib/ChangeLog: * prepare-commit-msg: Replace ENV variable with a git config value. --- diff --git a/contrib/prepare-commit-msg b/contrib/prepare-commit-msg index 57bb91747f6..cc9ba2e6ba1 100755 --- a/contrib/prepare-commit-msg +++ b/contrib/prepare-commit-msg @@ -58,8 +58,9 @@ else fi # Save diff to a file if requested. -if ! [ -z "$GCC_GIT_DIFF_FILE" ]; then - tee="tee $GCC_GIT_DIFF_FILE" +DIFF_FILE=$(git config gcc-config.diff-file) +if ! [ -z "$DIFF_FILE" ]; then + tee="tee $DIFF_FILE" else tee="cat" fi