aboutsummaryrefslogtreecommitdiffstats
path: root/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch
diff options
context:
space:
mode:
Diffstat (limited to '0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch')
-rw-r--r--0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch b/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch
new file mode 100644
index 0000000..b90d0c7
--- /dev/null
+++ b/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch
@@ -0,0 +1,27 @@
+From 917df10a7d166fdfb4479ee28c40cb884bfc37dc Mon Sep 17 00:00:00 2001
+From: 1024x2 <2pow11@gmail.com>
+Date: Wed, 11 Oct 2023 15:55:03 +0100
+Subject: [PATCH 4/5] Updater: don't prompt for updates when on a local branch
+
+---
+ src/main/updater/git.ts | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/src/main/updater/git.ts b/src/main/updater/git.ts
+index 2ff3ba5..21f33d1 100644
+--- a/src/main/updater/git.ts
++++ b/src/main/updater/git.ts
+@@ -49,9 +49,7 @@ async function getRepo() {
+ async function calculateGitChanges() {
+ await git("fetch");
+
+- const branch = await git("branch", "--show-current");
+-
+- const res = await git("log", `HEAD...origin/${branch.stdout.trim()}`, "--pretty=format:%an/%h/%s");
++ const res = await git("log", "HEAD...@{u}", "--pretty=format:%an/%h/%s");
+
+ const commits = res.stdout.trim();
+ return commits ? commits.split("\n").map(line => {
+--
+2.43.1
+