Fix git updater for other branches (#1915)
This commit is contained in:
parent
0afe319141
commit
98d49af728
@ -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…
x
Reference in New Issue
Block a user