Skip to content

Commit

Permalink
Actually commit the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Sep 3, 2013
1 parent 9afc15f commit 3c1e8c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ want to edit that a bit, so `changes` won't commit it, unless you
The remaining tasks can be automated with the `release` command.

```python
(changes)➜ changes git:(master) changes -p changes changelog --commit-changelog
(changes)➜ changes git:(master) changes -p changes changelog
What is the release version for "changes" [Default: 0.1.1]:
INFO:changes.cli:Added content to CHANGELOG.md
Everything up-to-date
Expand Down
4 changes: 1 addition & 3 deletions changes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ def changelog(arguments):
if git_log_content:
[changelog_content.append('* %s\n' % line) if line else line for line in git_log_content[:-1]]

log.debug('content: %s' % changelog_content)

write_new_changelog(
app_name,
'CHANGELOG.md',
Expand All @@ -204,7 +202,7 @@ def changelog(arguments):

if arguments['--commit-changelog']:
execute(
['git', 'ci', '-m', '"%s"' % new_version, '%s/__init__.py' % app_name],
['git', 'ci', '-m', new_version, 'CHANGLOG.md'],
dry_run=dry_run
)

Expand Down

0 comments on commit 3c1e8c8

Please sign in to comment.