Add a comment to tasks/generate.py regarding Windows shell syntax

This commit is contained in:
Paul Moore 2018-04-22 13:16:57 +01:00
parent 9d7095c72e
commit 70e870f72a
1 changed files with 5 additions and 0 deletions

View File

@ -9,8 +9,13 @@ def authors(ctx):
# Get our list of authors
print("[generate.authors] Collecting author names")
# Note that it's necessary to use double quotes in the
# --format"=%aN <%aE>" part of the command, as the Windows
# shell doesn't recognise single quotes here.
r = ctx.run('git log --use-mailmap --format"=%aN <%aE>"',
encoding="utf-8", hide=True)
authors = []
seen_authors = set()
for author in r.stdout.splitlines():