Fix git updater for other branches (#1915)

main
Luna 1 year ago committed by Nuckyz
parent 0afe319141
commit 98d49af728
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -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 => {

Loading…
Cancel
Save