Skip to content

Only 'git fetch' if there is a remote repository available - #10853

Merged
João Moreno (joaomoreno) merged 2 commits into
microsoft:masterfrom
natenovielli:nathnovi/8053/dont_fetch_when_no_remote
Aug 24, 2016
Merged

João Moreno (joaomoreno) merged 2 commits into
microsoft:masterfrom
natenovielli:nathnovi/8053/dont_fetch_when_no_remote

Conversation

@natenovielli

Copy link
Copy Markdown
Contributor

Working on #8053

Update the AutoFetcher loop to check the gitServer.model.remotes before doing a 'git fetch'. Only fetch if there is a remote listed in the model.

Update the AutoFetcher loop to check the gitServer.model.remotes before
doing a 'git fetch'.  Only fetch if there is a remote listed in the
model.
@msftclas

Hi Nathan Novielli (@natenovielli), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 60.818% when pulling 6f025e7 on natenovielli:nathnovi/8053/dont_fetch_when_no_remote into 727fdcd on Microsoft:master.

@joaomoreno

Copy link
Copy Markdown
Contributor

Thanks!

@ojemuyiwa

Copy link
Copy Markdown

Fabulous stuff and thanks for the Fix. So errr what is the fix? update? settings? Wait for next release?

@p-stewart

Copy link
Copy Markdown

It seems to me there might be a regression with this fix, or something. After a recent update to vscode, using git log from within the command palette opens the output pane with this particular error:

git remote get-url origin  (completed in 0.013s)
fatal: No such remote 'origin'

I don't have any remotes connected to this repo.

version info

Version 1.21.1 | Commit 79b44aa

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants