Skip to content

git: Throw fetch error#36974

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
keegancsmith:fetch-noop
Oct 27, 2017
Merged

git: Throw fetch error#36974
joaomoreno merged 1 commit intomicrosoft:masterfrom
keegancsmith:fetch-noop

Conversation

@keegancsmith
Copy link
Contributor

The only place that calls fetch will handle the error correctly. So this should fix a bug were we don't disable autofetch when fetch fails due to auth issues.

https://github.com/Microsoft/vscode/blob/3f4bb73cb98e6b4dcd5da6ddff74024ce71bd493/extensions/git/src/autofetch.ts#L62-L68

Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct behaviour. We want to see errors, if there are any, when the user explicitly runs the fetch command.

@joaomoreno joaomoreno closed this Oct 27, 2017
@keegancsmith
Copy link
Contributor Author

@joaomoreno I think you may have misread this PR. Currently we just catch and throw away the error for fetch. This PR makes it so we don't throw it away.

@joaomoreno
Copy link
Member

Oh!

@joaomoreno joaomoreno reopened this Oct 27, 2017
@joaomoreno joaomoreno merged commit d3028fb into microsoft:master Oct 27, 2017
@joaomoreno
Copy link
Member

@keegancsmith You keep doing great work! Thanks man! 🍻

@joaomoreno joaomoreno added this to the October 2017 milestone Oct 27, 2017
@joaomoreno joaomoreno added the git GIT issues label Oct 27, 2017
@keegancsmith
Copy link
Contributor Author

np!

@keegancsmith keegancsmith deleted the fetch-noop branch October 27, 2017 14:39
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants