Skip to content
Browse files

check breakages: fail loudly when unable to checkout tag (#1060)

One line description of your change


When using the script ad hoc to verify something you may have forgotten to pull all tags,
the script then fails mysteriously in silence and no output. Detective work can then lead the script mysteriously stopping after a checkout:

+ cd /tmp/.check-api_1Q1rvO/repo
+ git checkout 1.1.0
$ ...

which reminds you to perform a fetch; it would be nicer if it told us about the issue explicitly though.


Don't silence `git checkout` all error output, though use quiet mode so no progress is printed.


Script fails nicer and reminds you to perform a git fetch if you forgot to do so.


[5/5] Merging module Metrics
error: pathspec '1.1.0' did not match any file(s) known to git
  • Loading branch information...
ktoso authored and weissi committed Jul 9, 2019
1 parent 64c673b commit ed3bca31314a25e0c7df471a185aec855e9d69d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/
@@ -35,7 +35,7 @@ function build_and_do() {

cd "$repodir"
git checkout "$tag" 2> /dev/null
git checkout -q "$tag"
swift build
while read -r module; do
swift api-digester -dump-sdk -module "$module" \

0 comments on commit ed3bca3

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