[ci] fix script not working on non-sh shells #296
1 changed files with 2 additions and 6 deletions
|
@ -4,12 +4,8 @@ HEADER="$(cat "$PWD/.ci/license/header.txt")"
|
||||||
|
|
||||||
echo "Getting branch changes"
|
echo "Getting branch changes"
|
||||||
|
|
||||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
BASE=`git merge-base master HEAD`
|
||||||
COMMITS=`git log ${BRANCH} --not master --pretty=format:"%h"`
|
FILES=`git diff --name-only $BASE`
|
||||||
RANGE="${COMMITS[${#COMMITS[@]}-1]}^..${COMMITS[0]}"
|
|
||||||
FILES=`git diff-tree --no-commit-id --name-only ${RANGE} -r`
|
|
||||||
|
|
||||||
#FILES=$(git diff --name-only master)
|
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue