|
|
@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|