8365048: idea.sh script does not correctly detect/handle git worktrees
Some checks failed
OpenJDK GHA Sanity Checks / macos-aarch64 (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64 (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64-hs-nopch (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / windows-aarch64 (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / docs (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64-hs-zero (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64-hs-minimal (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64-hs-optimized (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64-static (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-x64-static-libs (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / linux-cross-compile (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / alpine-linux-x64 (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / macos-x64 (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / windows-x64 (push) Blocked by required conditions
OpenJDK GHA Sanity Checks / Prepare the run (push) Failing after 58s

Reviewed-by: shade, vyazici, erikj, mcimadamore, ihse
This commit is contained in:
David Beaumont 2025-08-14 17:02:05 +00:00 committed by Aleksey Shipilev
parent 26ccb3cef1
commit ba23105231

View file

@ -125,7 +125,8 @@ if [ -d "$TOPLEVEL_DIR/.hg" ] ; then
VCS_TYPE="hg4idea"
fi
if [ -d "$TOPLEVEL_DIR/.git" ] ; then
# Git worktrees use a '.git' file rather than directory, so test both.
if [ -d "$TOPLEVEL_DIR/.git" -o -f "$TOPLEVEL_DIR/.git" ] ; then
VCS_TYPE="Git"
fi