Skip to content

Commit

Permalink
Fix: create a list of commits since the parent of current hash ID and…
Browse files Browse the repository at this point in the history
… master, so that the current ID can be master and the list is still valid
  • Loading branch information
scottaubrey authored Oct 9, 2024
1 parent 02a3345 commit 71ba984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/update-api-dummy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71ba984

Please sign in to comment.