From 71ba9849d72d6d5b1fc72c8b895078b8f9e35836 Mon Sep 17 00:00:00 2001 From: Scott Aubrey Date: Wed, 9 Oct 2024 15:47:25 +0100 Subject: [PATCH] Fix: create a list of commits since the parent of current hash ID and master, so that the current ID can be master and the list is still valid --- bin/update-api-dummy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-api-dummy b/bin/update-api-dummy index 24c66d32..a27f3621 100755 --- a/bin/update-api-dummy +++ b/bin/update-api-dummy @@ -12,7 +12,7 @@ currentCommitID=$(cat docker-compose.yaml | yq '.services["api-dummy"].image|spl checkoutDir=$(mktemp -d) git clone --filter=blob:none --no-checkout --single-branch --branch $apiDummyBranch $apiDummyRepo $checkoutDir 2>/dev/null -latestCommitID=$(git -C $checkoutDir log -1 --pretty="%H" $currentCommitID..$apiDummyBranch) +latestCommitID=$(git -C $checkoutDir log -1 --pretty="%H" $currentCommitID^..$apiDummyBranch) rm -Rf $checkoutDir echo Image name: $imageName