FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.45k stars 640 forks source link

autoFetch: False still tries to fetch tags and erroring out if not successful #1380

Closed mitchcapper closed 4 years ago

mitchcapper commented 4 years ago

If you are disconnected from a remote repo or say don't have your private key in to access a remote repo there is no option to avoid error. authFetch: false is not enough to disable ungit from trying to connect to the remote to fetch the tags.
The tags will be fetched on focus/mouse move ( causing working-tree-changed event to fire). There is also git-directory-changed both which will cause branches.js and remotes.js to fire remote calls (and remotes.js will throw errors on screen).

This also probably leads to more battery drain in an offline/disconnect situation.

Will submit a PR I believe doesn't break anything but does allow offline/non remote support.