blob: 137d8d8b5f0ffc27f4aa81745418e16e8230f08d [file] [log] [blame]
#!/bin/bash
# Re-run the given builder at HEAD of the current git repo.
# Wait for it to finish and produce an exit status that corresponds to that of the run.
# This can be used as a git bisect script:
# $ git bisect run led-try-head <builder>
set -o pipefail
led get-builder "$@" | led edit -pa revision=$(git rev-parse HEAD) | led launch | "$(dirname "$0")/led-wait-for-status"