summaryrefslogtreecommitdiff
path: root/lib/gall/commit.lua
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-10-21 14:12:52 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-10-21 14:12:52 +0100
commit43816e976ca1008bad55ed5e01974e0709980418 (patch)
treea98718a168d41be6dec689a09d1be38db3cdab86 /lib/gall/commit.lua
parentda80f1442f7978f149bb2136b85ae6669a408b3f (diff)
downloadgall-master.tar.gz
Handle very odd author namesHEADmaster
Found in https://perl5.git.perl.org/metaconfig.git by ilmari, the commit 8004414d7809df2e2574f6c149ac592bd2d5af96 has a very unpleasant 'author' line which git parses in a very particular way (and which Gall failed to parse at all). This corrects that issue, making Gall's parser match outputs with Git's Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'lib/gall/commit.lua')
-rw-r--r--lib/gall/commit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gall/commit.lua b/lib/gall/commit.lua
index b87904e..fca8ebf 100644
--- a/lib/gall/commit.lua
+++ b/lib/gall/commit.lua
@@ -49,7 +49,7 @@ local _new
--- @section end
local function parse_person(pers)
- local real, email, when, tz = pers:match("^(.-) <([^>]+)> ([0-9]+) ([+-][0-9]+)$")
+ local real, email, when, tz = pers:match("^(.-) <([^>]+)>.-([0-9]+) ([+-][0-9]+)$")
return {
realname = real,
email = email,