Need to do a git fetch so we have full depth of tag history.
This commit is contained in:
parent
0a2bf3a262
commit
73f726fffe
2 changed files with 2 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ after_success:
|
|||
- coveralls
|
||||
before_deploy:
|
||||
- git checkout $TRAVIS_BRANCH
|
||||
- git fetch --unshallow
|
||||
- python update_version_from_git.py
|
||||
deploy:
|
||||
- provider: pypi
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ def git_tag_name():
|
|||
return tag_branch
|
||||
|
||||
def get_git_version_info():
|
||||
cmd = 'git describe --tags --always'
|
||||
cmd = 'git describe --tags'
|
||||
ver_str = subprocess.check_output(cmd, shell=True)
|
||||
ver, commits_since, githash = ver_str.decode().strip().split('-')
|
||||
return ver, commits_since, githash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue