From e3d60b58f2377766d0265ac8f4d01fbee8d199dd Mon Sep 17 00:00:00 2001 From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Tue, 12 Jan 2021 04:38:36 +0100 Subject: helpers: Fix command-line if git-config core.editor is unset Closes: https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/issues/43 Signed-off-by: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> --- helpers/xfce-do-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/xfce-do-release b/helpers/xfce-do-release index b350351..bf91711 100755 --- a/helpers/xfce-do-release +++ b/helpers/xfce-do-release @@ -151,7 +151,7 @@ edit () { if [ "$response" = "y" ]; then printf "\n ✓ Accepted.\n" elif [ "$response" = "e" ]; then - $(git config --global core.editor) $1 + $(git config --default "${EDITOR:-vi}" --global core.editor) $1 fi } -- cgit v1.2.1