feat: detect actual upstream #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Benjas333/userpluginInstaller:feat/detect-actual-remote"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If this PR does not meet the project goals/criteria, I get it.
Context
I tend to fork multiple userplugins because of maintenance, among other reasons, and it's a little (bit) annoying that userplugins says there's an update available because it's hard-coded to fetch origin/HEAD. So, this PR fixes that by detecting the actual upstream of the current branch.
Changelog
Added
getUpstream()async function (falls back to origin/HEAD)awaitableExecwrapper function (in case you want to reuse it)Changed
isUpdateAvailableForPluginandupdatePluginnow usegetUpstream()feat: detect actual upstreamto WIP: feat: detect actual upstreamI've realized I made the
isUpdateAvailableForPlugin()fall back wrong. Will fix it when I'm at my computer.WIP: feat: detect actual upstreamto feat: detect actual upstream