mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
@@ -2028,6 +2028,7 @@ export class Repository {
|
||||
|
||||
if (branchName.startsWith('refs/heads/')) {
|
||||
branchName = branchName.substring(11);
|
||||
const index = upstream.indexOf('/');
|
||||
|
||||
let ahead;
|
||||
let behind;
|
||||
@@ -2040,8 +2041,8 @@ export class Repository {
|
||||
type: RefType.Head,
|
||||
name: branchName,
|
||||
upstream: upstream ? {
|
||||
name: upstream.substring(upstream.length - branchName.length),
|
||||
remote: upstream.substring(0, upstream.length - branchName.length - 1)
|
||||
name: upstream.substring(index + 1),
|
||||
remote: upstream.substring(0, index)
|
||||
} : undefined,
|
||||
commit: ref || undefined,
|
||||
ahead: Number(ahead) || 0,
|
||||
|
||||
Reference in New Issue
Block a user