From 1a4e76dd74555c7d345419f884bd8358b6662071 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 15 Jun 2022 14:24:42 +0200 Subject: [PATCH] abuild: export $git to fix fatal: not a git repository We re-spawn abuild and need to pass $git --- abuild.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index af08035..562b58c 100755 --- a/abuild.in +++ b/abuild.in @@ -11,7 +11,9 @@ program_version=@VERSION@ sharedir=${ABUILD_SHAREDIR:-@sharedir@} abuild_path=$(readlink -f $0) -git=$(command -v git) || git=true + +: ${git:=$(command -v git || echo true)} +export git if ! [ -f "$sharedir/functions.sh" ]; then echo "$sharedir/functions.sh: not found" >&2