diff options
author | Bernat Gabor <bgabor8@bloomberg.net> | 2018-10-08 13:42:03 +0100 |
---|---|---|
committer | Bernat Gabor <bgabor8@bloomberg.net> | 2018-10-08 14:09:06 +0100 |
commit | 6207216ed3440fb7a8265515eb9d5fee7cc14034 (patch) | |
tree | 94dc0965fb5cb037964154f0173445d619cd8a12 /tasks | |
parent | 47b298ce2a9a1a758b0ccd35cb1180e70e637145 (diff) | |
download | tox-git-6207216ed3440fb7a8265515eb9d5fee7cc14034.tar.gz |
fix release task
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/release.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tasks/release.py b/tasks/release.py index 08d7bd37..503adab3 100644 --- a/tasks/release.py +++ b/tasks/release.py @@ -49,10 +49,6 @@ def get_upstream(repo: Repo) -> Remote: def release_changelog(repo: Repo, version: Version) -> Commit: print("generate release commit") check_call(["towncrier", "--yes", "--version", version.public], cwd=str(ROOT_SRC_DIR)) - changed = [item.a_path for item in repo.index.diff("HEAD")] - if any(not i.startswith("docs/changelog") for i in changed): - raise RuntimeError(f"found changes outside of the changelog domain: {changed}") - repo.index.add(changed) release_commit = repo.index.commit(f"release {version}") return release_commit |