vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

14.2.0 Breaks "pull" action works fine in 14.1.1

Open httpete opened this issue 3 years ago • 13 comments

Description

I am using GitLens with the SSH plugin. In the "Branches" view I click the "pull" arrow on a branch. It does not refresh and pull, removing the Red text and the indication that it is out of sync

In 14.1.1 it works perfectly.

GitLens Version

14.2

VS Code Version

Latest

Git Version

git version 2.39.3

Logs, Screenshots, Screen Captures, etc

No response

httpete avatar Aug 07 '23 16:08 httpete

@httpete Question as I investigate: do you have Git: Fetch on Pull enabled/checked in either your user or workspace settings?

image

ramin-t avatar Aug 08 '23 00:08 ramin-t

I do not. Right out the box.

httpete avatar Aug 08 '23 15:08 httpete

Thanks for checking @httpete . Would you mind also trying the following:

Add the line: "gitlens.experimental.nativeGit": true to your settings JSON and then after reloading (so that the new setting takes effect), try the pull action again and let me know if it's still broken for you? (You can remove the line after testing if it doesn't resolve the issue for you.)

image

image

ramin-t avatar Aug 09 '23 22:08 ramin-t

I'm having the same issue. And 14.1.1 works fine for me as well. @axosoft-ramint I tried to add the provided line on my settings JSON but it didn't work.

lucas-neuhauss avatar Aug 09 '23 22:08 lucas-neuhauss

@Neuhaus93 are you also using GitLens with the Remote SSH plugin? Wondering if the SSH interaction is relevant to the issue.

ramin-t avatar Aug 09 '23 22:08 ramin-t

@axosoft-ramint Negative, I'm not using it.

lucas-neuhauss avatar Aug 09 '23 22:08 lucas-neuhauss

Thanks. Just to confirm, which of the following is happening to you when clicking the Pull arrow? I'm assuming it's 2 but want to make sure.

  1. The pull action is not actually happening (the branch doesn't change in the repo), but the "out of sync" status goes away on the branch as if it pulled successfully
  2. The pull action is not actually happening, and the "out of sync" status doesn't change in the view
  3. The pull action is happening, but the branch still shows as "out of sync" in the view

ramin-t avatar Aug 09 '23 22:08 ramin-t

Can you also please enable debug logging by running the GitLens: Enable Debug Logging command from the Command Palette (F1 or ctrl/cmd+shift+p). This will enable logging to the GitLens & GitLens (Git) channels in the Output pane.

Once enabled, please reproduce the issue, and attach the logs from the GitLens and GitLens (Git) channels.

Thank you!

eamodio avatar Aug 09 '23 22:08 eamodio

@axosoft-ramint It's case 2. I attached the logs from when I click the button to when it stops loading. I also noticed that it only fails when I'm in a different branch from the one I'm trying to pull. If it's the same, it works.

gitlens-log.log

lucas-neuhauss avatar Aug 09 '23 23:08 lucas-neuhauss

Thank you for the extra details and I think this should now be fixed.

Can you please verify this fix in tomorrow's (v2023.8.10xx) pre-release edition of GitLens? Thank you so much!

You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view.

image

eamodio avatar Aug 10 '23 02:08 eamodio

@eamodio I just tried it with the pre-release version and can confirm it works. Thanks for the quick fix.

lucas-neuhauss avatar Aug 10 '23 12:08 lucas-neuhauss

I can report 14.2.1 works perfectly. THANKS!

httpete avatar Aug 16 '23 15:08 httpete

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 16 '23 05:09 github-actions[bot]