mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-15 20:03:57 +02:00
build,travis: fetch commits until we find merge-base
if the merge-base is not in the initial clone, git diff / git rev-list will return funky results Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
parent
78712dfca8
commit
e6013407a8
|
@ -1,5 +1,5 @@
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 10
|
||||||
language: c
|
language: c
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
|
@ -146,6 +146,11 @@ echo_blue "=== Travis ENV"
|
||||||
env
|
env
|
||||||
echo_blue "=== Travis ENV"
|
echo_blue "=== Travis ENV"
|
||||||
|
|
||||||
|
until git merge-base ${TRAVIS_COMMIT_RANGE/.../ } > /dev/null; do
|
||||||
|
echo_blue "Fetching 50 commits more"
|
||||||
|
git fetch origin --deepen=50
|
||||||
|
done
|
||||||
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" = false ] ; then
|
if [ "$TRAVIS_PULL_REQUEST" = false ] ; then
|
||||||
echo "Only Pull Requests are supported at the moment." >&2
|
echo "Only Pull Requests are supported at the moment." >&2
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user