RFR: 8365048: idea.sh script does not correctly detect/handle git worktrees
David Beaumont
duke at openjdk.org
Thu Aug 14 15:15:17 UTC 2025
On Thu, 14 Aug 2025 14:54:43 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> Allows files or directories called .git to indicate likely use of Git for VCS in IntelliJ.
>> Tested locally in a worktree and normal repository. It produces:
>>
>> <component name="VcsDirectoryMappings">
>> <mapping directory="$PROJECT_DIR$" vcs="Git" />
>> <mapping directory="$PROJECT_DIR$/open" vcs="Git" />
>> </component>
>>
>> in both cases, as expected.
>
> bin/idea.sh line 128:
>
>> 126: fi
>> 127:
>> 128: # Git workstrees use a '.git' file rather than directory, so test both.
>
> Suggestion:
>
> # Git worktrees use a '.git' file rather than directory, so test both.
>
>
> Right?
*doh* - thanks
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26777#discussion_r2276919398
More information about the core-libs-dev
mailing list