From 28247e6aa1cae82571431b2a146c1f8326f607f6 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 7 Dec 2023 18:50:19 +0100 Subject: [PATCH] website-build: build.sh: fix offline builds. Without that fix, build.sh compares the desired Untitled revision with the GNU Boot git revision, so the comparison always fail, which leads to broken offline builds. This was broken from the start in the commit cabc1cac08cb41777caa5674a1fd229d1e89bceb ("website-build: avoid unnecessary git fetch"). Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault --- website-build/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website-build/build.sh b/website-build/build.sh index 89a6902..eb9885d 100755 --- a/website-build/build.sh +++ b/website-build/build.sh @@ -51,7 +51,8 @@ sync_repo() git -C "${dst_path}" checkout "${src_revision}" fi elif [ -z "${src_path}" ] ; then - localrev="$(git --no-pager log --oneline HEAD -1 --format='%H')" + localrev="$(git -C "${dst_path}" --no-pager \ + log --oneline HEAD -1 --format='%H')" git -C "${dst_path}" remote get-url origin || \ git -C "${dst_path}" remote add origin "${src_uri}"