Skip to content

Commit 8526065

Browse files
committed
Fix fetching branches
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
1 parent dd54248 commit 8526065

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

www/combine-versions.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ mkdir spec/draft
6262
cp -r "$REPO_ROOT/spec"/* spec/draft/
6363

6464
# deploy older versions
65-
for RELEASE_BRANCH in $(git branch -r --list 'origin/releases/*'); do
66-
version="$(basename $RELEASE_BRANCH)"
67-
echo Populating spec/$version
65+
for FULLNAME_BRANCH in $(git branch -r --list 'origin/releases/*'); do
66+
VERSION="$(basename $FULLNAME_BRANCH)"
67+
RELEASE_BRANCH=releases/$VERSION
68+
echo Populating spec/$VERSION
6869
git -C "$REPO_ROOT" reset --hard
6970
if [[ "$FETCH_BRANCHES" == true ]]; then
7071
git -C "$REPO_ROOT" fetch origin $RELEASE_BRANCH:refs/remotes/origin/$RELEASE_BRANCH
7172
fi
7273
git -C "$REPO_ROOT" checkout $RELEASE_BRANCH
73-
mkdir spec/$version
74-
cp -r "$REPO_ROOT/spec"/* spec/$version/
74+
mkdir spec/$VERSION
75+
cp -r "$REPO_ROOT/spec"/* spec/$VERSION/
7576
done
7677

7778
# back to the original branch

0 commit comments

Comments
 (0)