Fix sometimes-spurious warning about changed config.h
After backing up and restoring config.h, `git diff-files` may report it as potentially-changed because it isn't sure whether the index is up to date. Use `git diff` instead: it actually reads the file.
This commit is contained in:
parent
92bff7f9bf
commit
add1d23b26
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ pre_check_git () {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! git diff-files --quiet include/mbedtls/config.h; then
|
||||
if ! git diff --quiet include/mbedtls/config.h; then
|
||||
err_msg "Warning - the configuration file 'include/mbedtls/config.h' has been edited. "
|
||||
echo "You can either delete or preserve your work, or force the test by rerunning the"
|
||||
echo "script as: $0 --force"
|
||||
|
|
Loading…
Reference in a new issue