From 115dfae25ece5fe9b8b394d5e015fd55af1a0c91 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 20 Apr 2020 16:33:57 -0700 Subject: [PATCH] don't use --depth --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index c4ce58c52..25b2bd86a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -238,6 +238,14 @@ matrix: confinement: classic - name: lxd channel: stable + git: + # By default, Travis clones the repo to a depth of 50 commits which can + # break the ability to use `git describe` to set the version of the + # snap. This setting removes the --depth flag from git commands solving + # this problem. See + # https://docs.travis-ci.com/user/customizing-the-build#git-clone-depth + # for more info. + depth: false deploy: 'on': # Deploy on release tags or nightly runs