only try to diff requirements if there was a previous release

Only try to show the changes in requirements if there was a previous
release.

Change-Id: I3bed3231994fe53bef13d93abff74c0ab260c1ae
This commit is contained in:
Doug Hellmann
2016-01-21 13:34:39 -05:00
parent 495d4233a9
commit 9d9cc343d0

View File

@@ -157,7 +157,8 @@ def main():
git_range = project['hash']
# Show any requirements changes in the upcoming release.
git_diff(workdir, project['repo'], git_range, '*requirements*.txt')
if start_range:
git_diff(workdir, project['repo'], git_range, '*requirements*.txt')
# Show the changes since the last release, first as a
# graph view so we can check for bad merges, and then with