Revert "Checkout branch with "force" so it updates the tree"

This reverts commit d13bc84232.

proceed with caution on this as i dont know what you were fixing
with this change
This commit is contained in:
DanConwayDev authored and Alex Gleason committed 2025-11-28 11:34:19 -06:00
1 parent 89de28cb0c
commit 5b8cb25675
4 files changed
-6

No files matched your search

-2
View File
@@ -182,7 +182,6 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
await git.checkout({
dir: projectPath,
ref: branchName,
force: true,
});
toast({
@@ -1289,7 +1288,6 @@ export function GitDialog({ projectId, children, open, onOpenChange }: GitDialog
await git.checkout({
dir: projectPath,
ref: pr.sourceBranch,
force: true,
});
await refetchGitStatus();
toast({
-1
View File
@@ -223,7 +223,6 @@ export function BranchManager({ projectId, currentBranch, onBranchChange }: Bran
await git.checkout({
dir: projectPath,
ref: branchName,
force: true,
});
toast({
-2
View File
@@ -122,7 +122,6 @@ export class GitCheckoutCommand implements GitSubcommand {
await this.git.checkout({
dir: cwd,
ref: branchName,
force: true,
});
return createSuccessResult(`Switched to branch '${branchName}'\n`);
@@ -165,7 +164,6 @@ export class GitCheckoutCommand implements GitSubcommand {
await this.git.checkout({
dir: cwd,
ref: branchName,
force: true,
});
return createSuccessResult(`Switched to a new branch '${branchName}'\n`);
-1
View File
@@ -1244,7 +1244,6 @@ export class Git {
fs: this.fs,
dir: options.dir,
ref: expectedBranch,
force: true,
});
} catch (checkoutError) {
console.warn(`Failed to checkout branch ${expectedBranch}:`, checkoutError);