New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fetch command to Repository explorer #470

Closed
escamoteur opened this Issue Aug 6, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@escamoteur

escamoteur commented Aug 6, 2018

Hi,

just installed Gitlens and it looks great!

My working folder is currently behind the remote repository what I can see when looking at github, but that isn't signaled in gitlens. Also if I call compare with working folder in the Remotes branch nothing is displayed.
Any help would be awesome.
Thanks
Thomas

@eamodio

This comment has been minimized.

Owner

eamodio commented Aug 6, 2018

GitLens doesn't execute any fetches -- I rely on the auto fetch in vscode (although this could be off git.autofetch is false) or just manual fetches. Do you still see that behavior after a git fetch?

@escamoteur

This comment has been minimized.

escamoteur commented Aug 7, 2018

Thanks a lot, that fixed it. Not sure if this is mentioned somewhere in your docs.

@escamoteur escamoteur closed this Aug 7, 2018

@eamodio

This comment has been minimized.

Owner

eamodio commented Aug 7, 2018

Glad that resolved it. You are right, it isn't mentioned in the docs -- I probably should add that, or maybe I should execute a fetch on refresh, if git.autofetch isn't enabled.

@eamodio eamodio reopened this Aug 7, 2018

@eamodio eamodio added bug and removed needs more info labels Aug 7, 2018

@escamoteur

This comment has been minimized.

escamoteur commented Aug 7, 2018

Yes would be good just got the feedback from someone else with the same problem. I fear a lot of users might install gitlense and directly uninstall it again because they think it doesn't work.

@GargantulaKon

This comment has been minimized.

GargantulaKon commented Aug 8, 2018

Yes, I just had the same issue. I'm more used to a GUI for Git and by clicking the refresh icon in the GitLens sidebar, I assumed that it would do a fetch for me. I checked the Git output logs and I don't see it doing so. My auto-fetch is off as well since I like to know when it occurs.

image

In addition, another related issue was that I was trying to switch to a new branch and I wanted to see it in the GitLens sidebar. I clicked on the refresh icon and I expected the branch to appear under the Remote section. It didn't see it so I ran a git fetch on the command line and then it appeared.

I'm not sure if you want to add a separate Git fetch button or make it part of the refresh button, but I could also see users getting confused by that.

@eamodio eamodio added this to the Soonish™ milestone Aug 16, 2018

@eamodio eamodio self-assigned this Aug 16, 2018

@eamodio eamodio changed the title from Comparison with remote repository seems not to work. to Add fetch command to Repository explorer Sep 11, 2018

@eamodio eamodio modified the milestones: Soonish™, Soon™ Sep 30, 2018

@eamodio eamodio closed this in a722a99 Dec 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment