use unused character as separator

This commit is contained in:
Frédéric Péters 2018-02-12 14:18:23 +01:00
parent 2aaaadcfd8
commit 977609be61
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import os
import subprocess
import time
@ -34,8 +36,8 @@ class Command(BaseCommand):
module = os.path.basename(repository).replace('.git', '')
print module
try:
for line in subprocess.check_output(['git', 'log', '--format=format:%H|%an|%ae|%aI|%cI']).splitlines():
sha, author_name, author_email, author_date, commit_date = line.strip().split('|')
for line in subprocess.check_output(['git', 'log', '--format=format:%H👾%an👾%ae👾%aI👾%cI👾%s']).splitlines():
sha, author_name, author_email, author_date, commit_date, subject = line.strip().split('👾')
if not author_email:
author_email = author_name + '@entrouvert.com'
author_email = author_map.get(author_email, author_email)