Skip to content

Commit

Permalink
travis-ci: unshallow git repo before running docker
Browse files Browse the repository at this point in the history
On travis-ci the version of git(1) inside of our docker image may
be too old for the `git fetch --unshallow --tags` to succeed, as
evidenced by errors like:

 git fetch --unshallow --tags
 fatal: unknown value for config 'protocol.version': 2

in our travis builds. To ensure we don't hit this error, run
the command to fetch tags *before* running docker, using the version
of git installed in travis.

Fixes flux-framework#2024
  • Loading branch information
grondo committed Apr 17, 2019
1 parent 0bcf910 commit 12427fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -122,6 +122,9 @@ before_install:
fi
script:
# Unshallow repository so git describe works.
# (The one inside docker-run-checks may fail if git version is too old)
- git fetch --unshallow --tags
- |
src/test/docker/docker-run-checks.sh -j2 \
--image=${IMG} \
Expand Down

0 comments on commit 12427fa

Please sign in to comment.