Skip to content

Commit

Permalink
Update compute_affected_tests.sh (#2992)
Browse files Browse the repository at this point in the history
Update affected targets script to work on versions of git older than 2.22.
  • Loading branch information
BenHenning authored Mar 23, 2021
1 parent 91e9467 commit 1f1e641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/compute_affected_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
BAZEL_BINARY=$1

# Reference: https://stackoverflow.com/a/6245587.
current_branch=$(git branch --show-current)
current_branch=$(git rev-parse --abbrev-ref HEAD)

if [[ "$current_branch" != "develop" ]]; then
# Compute all files that have been changed on this branch. https://stackoverflow.com/a/9294015 for
Expand Down

0 comments on commit 1f1e641

Please sign in to comment.