Skip to content

Commit 85073b7

Browse files
authored
Merge branch 'master' into docs-rel-4-8-0
2 parents 64329ee + 4c5b139 commit 85073b7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

scripts/index-breaking-changes.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@ fi
3333
# Fetch all branches from the remote
3434
# Pull *only* version-* branches into refs/remotes/origin/, shallow, skip tags,
3535
# and explicitly exclude version-3-4 with a negative refspec.
36-
git fetch --prune --no-tags --depth=1 --filter=blob:none origin \
37-
'+refs/heads/version-*:refs/remotes/origin/version-*' \
38-
'^refs/heads/version-3-4'
36+
git fetch --prune --no-tags --depth=1 origin \
37+
'+refs/heads/version-*:refs/remotes/origin/version-*'
3938

4039
# Get remote version branches (no locals, no HEAD), exclude version-3-4
41-
branches="$(
42-
git for-each-ref \
43-
--format='%(refname:strip=3)' \
44-
--sort=refname \
45-
--exclude='refs/remotes/origin/version-3-4' \
46-
'refs/remotes/origin/version-*'
47-
)"
40+
branches="$(git for-each-ref --format='%(refname:strip=3)' 'refs/remotes/origin/version-*' \
41+
| grep -v '^HEAD$' \
42+
| grep -v '^version-3-4$' \
43+
| sort -u)"
4844

4945
# Remove files for repeatable runs.
5046
rm -rf $BREAKING_CHANGES_PARTIALS_PATH

0 commit comments

Comments
 (0)