zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
603 stars 71 forks source link

[BUG] Wrong git submodule recognition #523

Closed wait2035 closed 6 months ago

wait2035 commented 6 months ago

Describe the bug

When i have a git repo named "aaaa", and i have 2 submodule, named "bbbb" and "cccc", while this time, i have one directory named "bbbbXXXX"(bbbb, which is submodule name, and also a prefix of aaaa's sub-director), the gittoolBox will recognize this bbbbXXXX as a part of submodule, and show me wrong message: "Fetal: xxx is outside repository at bbbb".

directory just like following:

tree aaaa

. ├── bbbb (submodule) ├── bbbbXXXX (normal directory of aaaa) ├── cccc (submodule)

To Reproduce

Expected behavior the files under bbbXXX/ can be recognized correctly only the files under bbbb/ can be recognized as the part of submodule bbbb.

Plugin version 3.3.5.233

IDE version CLION Version: #CL-233.13135.93

Runtime Info: 17.0.9+7-b1087.9 aarch64 VM: OpenJDK 64-Bit Server VM,JetBrains s.r.o

MAC M1, 14.1.2 (23B92) Screenshots Unable to provide external information

wait2035 commented 6 months ago

i mismatched the lable, it should be bug not question, sorry.

wait2035 commented 6 months ago

image like this pic.

zielu commented 6 months ago

Hi, I'll look into it.

wait2035 commented 6 months ago

Hi, I'll look into it. Thank you.

zielu commented 6 months ago

Done in 500.1.5+222

wait2035 commented 6 months ago

Thanks a lot. I see it works fine in my workspace now.