diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-01-25 14:01:14 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-01-25 17:24:24 +0000 |
| commit | 6b3c54482171941c3bebccc52922036d3e478223 (patch) | |
| tree | 3df252852226e7d53b8a76133b0abd1ba2c264ad /openstack/common/plugin/callbackplugin.py | |
| parent | 416e92d728b351a5ffbbbf0dda4973d41b1a7947 (diff) | |
| download | oslo-6b3c54482171941c3bebccc52922036d3e478223.tar.gz oslo-6b3c54482171941c3bebccc52922036d3e478223.tar.xz oslo-6b3c54482171941c3bebccc52922036d3e478223.zip | |
setup: count revs for revno if there are no tags
We currently use 'git describe --always' to figure out the number of
commits there have been leading up to the HEAD commit.
However, if there are no tags in the repo, git-describe just returns
the sha hash of HEAD and we fail.
In that case, use 'git rev-list HEAD | wc -l' so we can be #winning.
Change-Id: I345e0ee32189504276b3dfd3367057ce1d4a2b06
Diffstat (limited to 'openstack/common/plugin/callbackplugin.py')
0 files changed, 0 insertions, 0 deletions
