From b290b265f86b83f33d0997dd20d85c23d3ddd792 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 1 Oct 2020 20:17:06 -0700 Subject: [PATCH] jobd/update.sh: properly set up a quiet progress fetch When showing progress for an update, by default the extensive list of ref changes is suppressed and replaced with a summary while still showing fetch progress. Make sure all the correct GIT_* variables have been properly exported the same way they are for other git commands when using this fetch mechanism. Signed-off-by: Kyle J. McKay --- jobd/update.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/jobd/update.sh b/jobd/update.sh index 0f0ce2d..de4ba13 100755 --- a/jobd/update.sh +++ b/jobd/update.sh @@ -13,13 +13,16 @@ fi # date -R is linux-only, POSIX equivalent is '+%a, %d %b %Y %T %z' datefmt='+%a, %d %b %Y %T %z' -git_fetch_q_progress() { +git_fetch_q_progress() ( + _setexport_gitvars if [ "${cfg_max_file_size512:-0}" != "0" ]; then GIT_BIN="'$cfg_basedir/bin/ulimit512' -i -f '$cfg_max_file_size512' -- '$cfg_git_bin'" && export GIT_BIN fi - PATH="$var_git_exec_path:$cfg_basedir/bin:$PATH" @basedir@/jobd/git-fetch-q-progress.sh "$@" -} + PATH="$var_git_exec_path:$cfg_basedir/bin:$PATH" + export PATH + exec @basedir@/jobd/git-fetch-q-progress.sh "$@" +) # freshen_loose_objects full-sha ... # if "$n" is a loose object, set its modification time to now -- 2.11.4.GIT