We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f04f0a commit 4c5b139Copy full SHA for 4c5b139
scripts/index-breaking-changes.sh
@@ -37,13 +37,10 @@ git fetch --prune --no-tags --depth=1 origin \
37
'+refs/heads/version-*:refs/remotes/origin/version-*'
38
39
# Get remote version branches (no locals, no HEAD), exclude version-3-4
40
-branches="$(
41
- git for-each-ref \
42
- --format='%(refname:strip=3)' \
43
- --sort=refname \
44
- --exclude='refs/remotes/origin/version-3-4' \
45
- 'refs/remotes/origin/version-*'
46
-)"
+branches="$(git for-each-ref --format='%(refname:strip=3)' 'refs/remotes/origin/version-*' \
+ | grep -v '^HEAD$' \
+ | grep -v '^version-3-4$' \
+ | sort -u)"
47
48
# Remove files for repeatable runs.
49
rm -rf $BREAKING_CHANGES_PARTIALS_PATH
0 commit comments