Skip to content

Commit

Permalink
Merge pull request #20 from neuropoly/aj/19-fix-duplicate-header
Browse files Browse the repository at this point in the history
Don't write header twice
  • Loading branch information
Drulex authored Nov 17, 2020
2 parents 4b85ad4 + 413d937 commit ee4ee92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion changelog/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ def main():

# write current changelog
changelog.write('\n'.join(lines))
changelog.write('\n')

# write back rest of changelog
changelog.writelines(original)
changelog.writelines(original[1:])

logger.info(f"Backup created: {backup}")

Expand Down

0 comments on commit ee4ee92

Please sign in to comment.