|
|
@ -32,7 +32,7 @@ export const SourceControlBase = (props: SourceControlButtonsProps) => { |
|
|
|
const [commitsBehind, setCommitsBehind] = useState<ReadCommitResult[]>([]) |
|
|
|
const [commitsBehind, setCommitsBehind] = useState<ReadCommitResult[]>([]) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
|
|
|
|
setDefaultRemote() |
|
|
|
setDefaultRemote() |
|
|
|
if (remote && branch && context.branchDifferences && context.branchDifferences[`${remote.name}/${branch.name}`]) { |
|
|
|
if (remote && branch && context.branchDifferences && context.branchDifferences[`${remote.name}/${branch.name}`]) { |
|
|
|
setCommitsAhead(context.branchDifferences[`${remote.name}/${branch.name}`]?.uniqueHeadCommits) |
|
|
|
setCommitsAhead(context.branchDifferences[`${remote.name}/${branch.name}`]?.uniqueHeadCommits) |
|
|
@ -70,7 +70,7 @@ export const SourceControlBase = (props: SourceControlButtonsProps) => { |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
|
|
|
|
if (!props.branch) { |
|
|
|
if (!props.branch) { |
|
|
|
setBranch(context.currentBranch) |
|
|
|
setBranch(context.currentBranch) |
|
|
|
} |
|
|
|
} |
|
|
|