]> Kevux Git Server - rit/commit
git-gui: ensure own version of git-gui--askpass is used
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 31 Jul 2025 08:06:28 +0000 (01:06 -0700)
committerJohannes Sixt <j6t@kdbg.org>
Mon, 4 Aug 2025 16:25:59 +0000 (18:25 +0200)
commite3efff4463c09f0070777000624f6b148873a0b5
treeb1257d524b0452b2e9f7ed969d82668d1d28bb9d
parent0e3233b91393e3b5f21c310f202797a603294e0d
git-gui: ensure own version of git-gui--askpass is used

When finding a location for the askpass helper, git will be asked
for its exec path, but if that git is not the same that called
git-gui then we might mistakenly point to its helper instead.

Assume that git-gui and the helper are colocated to derive its
path instead.

This is specially useful in macOS where a broken version of that
helper is provided by the system git.

[j6t: move directory to variable to help in-flight topics]

Suggested-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
git-gui.sh