Checkout branch with "force" so it updates the tree

This commit is contained in:
Alex Gleason committed 2025-10-29 15:10:20 -05:00
1 parent 05bdd275d1
commit d13bc84232
4 files changed
+9 -3

No files matched your search

+2
View File
@@ -135,6 +135,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
await git.checkout({
dir: projectPath,
ref: branchName,
force: true,
});
toast({
@@ -1125,6 +1126,7 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
await git.checkout({
dir: projectPath,
ref: pr.sourceBranch,
force: true,
});
await refetchGitStatus();
toast({
+1
View File
@@ -213,6 +213,7 @@ export function BranchManager({ projectId, currentBranch, onBranchChange }: Bran
await git.checkout({
dir: projectPath,
ref: branchName,
force: true,
});
toast({