diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2019-02-28 15:35:03 +1100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-11 16:33:49 +0100 |
commit | fd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381 (patch) | |
tree | 7e34afe0c94bb1e3f9cca001cd9af2fb677ad4a0 | |
parent | 06164cc402e67e64eefb79cd9a00a59d0e0d2fce (diff) | |
download | qemu-fd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381.zip qemu-fd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381.tar.gz qemu-fd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381.tar.bz2 |
configure: Enable werror for git worktrees
The configure script checks multiple times whether it works in a git
repository and it does this by "test -e "${source_path}/.git" in 4 cases
but in one case where it tries to enable werror "-d" is used there which
fails on git worktrees as .git is a file then and not a directory.
This changes the test to "-e" as other occurrences.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20190228043503.68494-1-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1836,7 +1836,7 @@ fi # Consult white-list to determine whether to enable werror # by default. Only enable by default for git builds if test -z "$werror" ; then - if test -d "$source_path/.git" && \ + if test -e "$source_path/.git" && \ { test "$linux" = "yes" || test "$mingw32" = "yes"; }; then werror="yes" else |