Skip to content

Commit

Permalink
fix commit order when using path filter and ci-skip disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Hoogervorst <[email protected]>
  • Loading branch information
Hoogervorst committed Oct 3, 2019
1 parent 2da9820 commit 07fcec0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions assets/check
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ get_commit(){
done
}

if [ "$reverse" == "true" ]
then
list_command+=" --reverse"
fi

#if no range is selected just grab the last commit that fits the filter
if [ -z "$log_range" ]
then
list_command+="| git rev-list --stdin -1"
fi

if [ "$reverse" == "true" ]
then
list_command+="| git rev-list --stdin --first-parent --no-walk --reverse"
fi

if [ -n "$tag_filter" ]; then
{
if [ -n "$ref" ] && [ -n "$branch" ]; then
Expand Down
2 changes: 1 addition & 1 deletion test/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ it_can_check_from_a_ref() {
local ref1=$(make_commit $repo)
local ref2=$(make_commit $repo)
local ref3=$(make_commit $repo)

check_uri_from $repo $ref1
check_uri_from $repo $ref1 | jq -e "
. == [
{ref: $(echo $ref1 | jq -R .)},
Expand Down

0 comments on commit 07fcec0

Please sign in to comment.