zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
604 stars 73 forks source link

(🐞) auto fetch resets the gitlog selected commit #391

Closed KotlinIsland closed 2 years ago

KotlinIsland commented 2 years ago

Describe the {🐞} A clear and concise description of what the (🐞) doin.

auto fetch causes the currently selected commit in the log window to reset to the selected branch from the branch pane.

This also happens if you are looking at a diff which can be extremely frustrating

To Reproduce

Select this option: image

Steps to reproduce the behavior:

  1. Go to 'branches pane'
  2. Click on 'a branch'
  3. Scroll down to 'a different commit'
  4. Wait for auto-fetch
  5. Selection resets to the selected branch

Expected behavior Nothing at all, the same behavior as a normal fetch.

Plugin version Exact plugin version. 212.8.8

IDE version Exact IDE and OS. You can use About > Copy PC 2022.1 (but happens on older versions too) Windows 10

zielu commented 2 years ago

Hi, I'll take a look

zielu commented 2 years ago

The same thing happens when invoking build-in fetch action - selection get's scrolled to HEAD commit of branch selected in 'branches pane'. The trigger seems to be any commits are actually fetched from remote.

It also happens with plugin disabled, so it is an IDE issue

KotlinIsland commented 2 years ago

https://youtrack.jetbrains.com/issue/IDEA-290571

KotlinIsland commented 2 years ago

@zielu I'm sorry my diagnosis was incorrect. Thanks for looking into it!

zielu commented 2 years ago

@KotlinIsland no problem at all, take care!