Fix git updater for other branches (#1915)

This commit is contained in:
Luna 2023-10-27 09:07:50 -04:00 committed by Nuckyz
parent 0afe319141
commit 98d49af728
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

View File

@ -49,7 +49,9 @@ async function getRepo() {
async function calculateGitChanges() {
await git("fetch");
const res = await git("log", "HEAD...origin/main", "--pretty=format:%an/%h/%s");
const branch = await git("branch", "--show-current");
const res = await git("log", `HEAD...origin/${branch}`, "--pretty=format:%an/%h/%s");
const commits = res.stdout.trim();
return commits ? commits.split("\n").map(line => {