scorecard: the overlay can be run from a copy outside a checkout
This commit is contained in:
parent
49bae21a4d
commit
ae5db47801
1 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,9 @@ set -euo pipefail
|
|||
ref="${1:?usage: overlay.sh <scorecard-ref> <target-tree>}"
|
||||
target="${2:?usage: overlay.sh <scorecard-ref> <target-tree>}"
|
||||
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
repo="$(git -C "$here" rev-parse --show-toplevel)"
|
||||
# SCORECARD_REPO names the repository holding <scorecard-ref> when this script was extracted
|
||||
# from it (a copy outside any checkout).
|
||||
repo="${SCORECARD_REPO:-$(git -C "$here" rev-parse --show-toplevel)}"
|
||||
ws="$target/services/flysim/Cargo.toml"
|
||||
task="$target/services/flysim/crates/fly-legacy-session/src/task.rs"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue