From 70e870f72adaf4754b00ca117b6a925c6fcb7a75 Mon Sep 17 00:00:00 2001
From: Paul Moore
Date: Sun, 22 Apr 2018 13:16:57 +0100
Subject: [PATCH] Add a comment to tasks/generate.py regarding Windows shell
syntax
---
tasks/generate.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tasks/generate.py b/tasks/generate.py
index 8e4645854..69960231c 100644
--- a/tasks/generate.py
+++ b/tasks/generate.py
@@ -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():