prepare-commit-hook: Use gcc-config.diff-file.
contrib/ChangeLog: * prepare-commit-msg: Replace ENV variable with a git config value.
This commit is contained in:
parent
9aadfdd650
commit
8ff57396d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user