mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
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:
1 parent
89de28cb0c
commit
5b8cb25675
4 files changed
-6
No files matched your search
@@ -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({
|
||||
|
||||
@@ -223,7 +223,6 @@ export function BranchManager({ projectId, currentBranch, onBranchChange }: Bran
|
||||
await git.checkout({
|
||||
dir: projectPath,
|
||||
ref: branchName,
|
||||
force: true,
|
||||
});
|
||||
|
||||
toast({
|
||||
|
||||
@@ -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`);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user