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

Loading…
Cancel
Save