]> git.ipfire.org Git - thirdparty/qemu.git/commit - configure
configure: Enable werror for git worktrees
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 28 Feb 2019 04:35:03 +0000 (15:35 +1100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 11 Mar 2019 15:33:49 +0000 (16:33 +0100)
commitfd73745d1bc69a10a2a42e7a5fbbc5f2da2fb381
tree7e34afe0c94bb1e3f9cca001cd9af2fb677ad4a0
parent06164cc402e67e64eefb79cd9a00a59d0e0d2fce
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>
configure