Skip to content
Permalink
Browse files

api breakage tester: fetch all refs (#1076)

Motivation:

To be able to use SHA sums as git versions, we need to pull all the refs
to we get even the commit SHAs from PRs. That's important so CI can use
this script.

Modifications:

Fetch `+refs/pull/*:refs/remotes/origin/pr/*` refs.

Result:

Should be able to be usable in CI across forks.
  • Loading branch information...
weissi committed Jul 17, 2019
1 parent fb03f94 commit ca69149d5f18327d7ea61fa67d1924d7a00e1c00
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/check_no_api_breakages.sh
@@ -35,7 +35,7 @@ function build_and_do() {

(
cd "$repodir"
git checkout -q "$tag"
git checkout -q "$tag"
swift build
while read -r module; do
swift api-digester -sdk "$sdk" -dump-sdk -module "$module" \
@@ -76,6 +76,7 @@ shift 2

repodir="$tmpdir/repo"
git clone "$repo_url" "$repodir"
git -C "$repodir" fetch -q origin '+refs/pull/*:refs/remotes/origin/pr/*'
errors=0

for old_tag in "$@"; do

0 comments on commit ca69149

Please sign in to comment.
You can’t perform that action at this time.