From fd1627b346c9ecf74b0580cf10ed6711c29ab13a Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 30 Apr 2023 16:48:23 -0400 Subject: [PATCH] Fixes getting oldest unpushed commit w/ >1 remotes --- src/env/node/git/localGitProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env/node/git/localGitProvider.ts b/src/env/node/git/localGitProvider.ts index a98816b..ab567b1 100644 --- a/src/env/node/git/localGitProvider.ts +++ b/src/env/node/git/localGitProvider.ts @@ -3500,7 +3500,7 @@ export class LocalGitProvider implements GitProvider, Disposable { async getOldestUnpushedRefForFile(repoPath: string, uri: Uri): Promise { const [relativePath, root] = splitPath(uri, repoPath); - const data = await this.git.log__file(root, relativePath, '@{push}..', { + const data = await this.git.log__file(root, relativePath, '@{u}..', { argsOrFormat: ['-z', '--format=%H'], fileMode: 'none', ordering: configuration.get('advanced.commitOrdering'),