Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
check: do not list all revs if its a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
chrised committed Aug 19, 2020
1 parent 3735c46 commit f937475
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/check
Expand Up @@ -84,7 +84,13 @@ else
paths_search=`echo "-- $paths $ignore_paths" | tr "\n\r" " "`
fi

list_command="git rev-list --all --first-parent $log_range $paths_search"
# Don't log all if we're trying to list a PR!
list_extra_args="--all"
if [ ! -z "$pull_request" ]; then
list_extra_args=""
fi

list_command="git rev-list $list_extra_args --first-parent $log_range $paths_search"
if [ `echo $filter_whitelist | jq -r '. | length'` -gt 0 ]
then
whitelist_items=$(echo $filter_whitelist | jq -r -c '.[]')
Expand Down

0 comments on commit f937475

Please sign in to comment.