Fix: reset hasUpstream, aheadCount, behindCount in statusOverride after branch checkout
Co-authored-by: Julius Marminge <[email protected]> Applied via @cursor push command
This commit is contained in:
1 parent
bb7c9c7af4
commit
522d929ce9
1 file changed
+8
-1
@@ -445,7 +445,14 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
|
||||
void checkoutPromise
|
||||
.then(() => {
|
||||
const statusOverride = gitStatusForActions
|
||||
? { ...gitStatusForActions, branch: branchName, pr: null }
|
||||
? {
|
||||
...gitStatusForActions,
|
||||
branch: branchName,
|
||||
pr: null,
|
||||
hasUpstream: false,
|
||||
aheadCount: 0,
|
||||
behindCount: 0,
|
||||
}
|
||||
: null;
|
||||
return runGitActionWithToast({
|
||||
...actionParams,
|
||||
|
||||
Reference in new issue
Block a user