Skip to content

Commit

Permalink
install: fix expected log format in gitlog2changelog.py
Browse files Browse the repository at this point in the history
Update gitlog2changelog.py script to ensure git log format is not
influenced by user git configuration.

Fixes #487.
  • Loading branch information
xdelaruelle committed Mar 21, 2023
1 parent 56d76de commit 2835f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Modules 5.3.0 (not yet released)
used with new *fish* shell version (3.6).
* Install: allow to build Modules from a short-depth git repository. (fix
issue #486)
* Install: ensure git log format is not influenced by user's configuration in
:command:`gitlog2changelog.py`. (fix issue #487)


.. _5.2 release notes:
Expand Down
2 changes: 1 addition & 1 deletion script/gitlog2changelog.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if len(sys.argv) > 1:
rev_range = '%s..HEAD' % base

# Execute git log with the desired command line options.
fin = os.popen('git log --summary --stat --no-merges --date=short %s' % rev_range, 'r')
fin = os.popen('git log --pretty=medium --summary --stat --no-merges --date=short %s' % rev_range, 'r')
# Create a ChangeLog file in the current directory.
fout = open('ChangeLog', 'w')

Expand Down

0 comments on commit 2835f6b

Please sign in to comment.