From 38834ef7acac78a3d0b77dddbcc98efca9076d91 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:03:52 -0300 Subject: [PATCH] Fix git updater --- src/main/updater/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/updater/git.ts b/src/main/updater/git.ts index 7f778594..e9602644 100644 --- a/src/main/updater/git.ts +++ b/src/main/updater/git.ts @@ -51,7 +51,7 @@ async function calculateGitChanges() { const branch = await git("branch", "--show-current"); - const res = await git("log", `HEAD...origin/${branch}`, "--pretty=format:%an/%h/%s"); + const res = await git("log", `HEAD...origin/${branch.stdout.trim()}`, "--pretty=format:%an/%h/%s"); const commits = res.stdout.trim(); return commits ? commits.split("\n").map(line => {