commit c3fc63c64f9db3b98d16fa77a8021b3f5d5b34a4
Author: Florian Wilhelm <email address hidden>
Date: Fri Jun 19 12:01:12 2015 +0200
Fix retrieval of commit data and most recent tag.
git._iter_log_online() returns None in some cases for instance
when SKIP_WRITE_GIT_CHANGELOG is set to true. This is fixed by
returning an empty list in _iter_log_online.
Also the check if a changelog based on git should be written
was moved from git._iter_log_online to git.write_git_changelog
which makes more sense since some functions were calling
git._iter_log_online to get the changelog for other reasons than
writing it.
Additionally a unittest was added to check that setting the
environment variable SKIP_WRITE_GIT_CHANGELOG to true does not
break anything when retrieving the git version.
Reviewed: https:/ /review. openstack. org/194954 /git.openstack. org/cgit/ openstack- dev/pbr/ commit/ ?id=c3fc63c64f9 db3b98d16fa77a8 021b3f5d5b34a4
Committed: https:/
Submitter: Jenkins
Branch: master
commit c3fc63c64f9db3b 98d16fa77a8021b 3f5d5b34a4
Author: Florian Wilhelm <email address hidden>
Date: Fri Jun 19 12:01:12 2015 +0200
Fix retrieval of commit data and most recent tag.
git. _iter_log_ online( ) returns None in some cases for instance GIT_CHANGELOG is set to true. This is fixed by
when SKIP_WRITE_
returning an empty list in _iter_log_online.
Also the check if a changelog based on git should be written log_online to git.write_ git_changelog _iter_log_ online to get the changelog for other reasons than
was moved from git._iter_
which makes more sense since some functions were calling
git.
writing it.
Additionally a unittest was added to check that setting the GIT_CHANGELOG to true does not
environment variable SKIP_WRITE_
break anything when retrieving the git version.
Change-Id: Ib12df23ab25b29 0dd394f9cb1456b 8d5da57306a
Closes-Bug: 1467440