Skip to content

Commit 7d8e3c3

Browse files
committed
scripts: fetch branch before checkout in release script
actions/checkout does a sparse clone by default so the branch may not be yet available. Reviewed-by: Justin Stephenson <jstephen@redhat.com>
1 parent e4eb8bd commit 7d8e3c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ GROUP_END
6262
set -x
6363

6464
GROUP_START "Checkout branch"
65+
git fetch origin "$branch"
6566
git checkout "$branch"
6667
git pull --rebase
6768
GROUP_END

0 commit comments

Comments
 (0)