Browse Source

build,travis: fix repo unshallowing

git merge-base does not work as I expected

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
lilik-openwrt-22.03
Etienne Champetier 7 years ago
parent
commit
fb00f8f39d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      .travis_do.sh

+ 2
- 1
.travis_do.sh View File

@ -152,7 +152,8 @@ echo_blue "=== Travis ENV"
env env
echo_blue "=== Travis ENV" echo_blue "=== Travis ENV"
until git merge-base ${TRAVIS_COMMIT_RANGE/.../ } > /dev/null; do
until [ "$(git rev-list ${TRAVIS_COMMIT_RANGE/.../..} | tail -n1)" != "a22de9b74cf9579d1ce7e6cf1845b4afa4277b00" ]; do
# if clone depth is too small, git rev-list / diff return incorrect results
echo_blue "Fetching 50 commits more" echo_blue "Fetching 50 commits more"
git fetch origin --deepen=50 git fetch origin --deepen=50
done done


Loading…
Cancel
Save