Browse Source

travis: git pull more depth

master
Harald Hoyer 6 years ago
parent
commit
0ae5848245
  1. 2
      .travis.yml
  2. 4
      Makefile

2
.travis.yml

@ -13,7 +13,7 @@ env: @@ -13,7 +13,7 @@ env:

before_script:
- docker pull fedora:$IMAGE
- git pull --tags
- git pull --depth=100
- |
git describe --abbrev=0 --tags || :
git describe --tags || :

4
Makefile

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
-include dracut-version.sh

VERSION ?= $(shell [ -d .git ] && git describe --abbrev=0 --tags 2>/dev/null || echo $(DRACUT_VERSION))
GITVERSION ?= $(shell [ -d .git ] && { v=$$(git describe --tags 2>/dev/null); [ -n "$$v" ] && [ $${v\#*-} != $$v ] && echo -$${v\#*-}; } )
VERSION ?= $(shell [ -d .git ] && git describe --abbrev=0 --tags --always 2>/dev/null || echo $(DRACUT_VERSION))
GITVERSION ?= $(shell [ -d .git ] && { v=$$(git describe --tags --always 2>/dev/null); [ -n "$$v" ] && [ $${v\#*-} != $$v ] && echo -$${v\#*-}; } )

-include Makefile.inc


Loading…
Cancel
Save