fix fetching after adding remote

pull/5026/head
bunsenstraat 4 months ago committed by Aniket
parent 994ebf20b9
commit 40dcc81425
  1. 12
      libs/remix-ui/git/src/lib/gitactions.ts

@ -787,13 +787,6 @@ export const getBranchDifferences = async (branch: branch, remote: remote, state
try { try {
await fetch({
remote: remote,
singleBranch: true,
ref: branch,
quiet: true,
})
if (!remote) { if (!remote) {
dispatch(resetBranchDifferences()) dispatch(resetBranchDifferences())
return return
@ -844,6 +837,11 @@ export const addRemote = async (remote: remote) => {
try { try {
await plugin.call('dgitApi', 'addremote', remote) await plugin.call('dgitApi', 'addremote', remote)
await getRemotes() await getRemotes()
await fetch({
remote: remote,
singleBranch: true,
quiet: true,
})
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }

Loading…
Cancel
Save