From 13d1dfb08cd9e4a92b48ccc5d46d293ad21b1ee5 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Mon, 30 Sep 2024 02:52:57 -0400 Subject: [PATCH] fix: git onAuth incorrect calling context --- src-electron/git.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src-electron/git.js b/src-electron/git.js index 4890747..d91f4ea 100644 --- a/src-electron/git.js +++ b/src-electron/git.js @@ -136,7 +136,9 @@ export default { dir, url, remote: 'origin', - onAuth: this.onAuth + onAuth: (url) => { + return this.onAuth(url) + } }) this.conf.currentRemote = 'origin' if (upstreamUrl) { @@ -169,7 +171,10 @@ export default { fs, http, dir, - remote + remote, + onAuth: (url) => { + return this.onAuth(url) + } }) }, /**