From 977609be61c0c55d92790397317233d48f9cdec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 12 Feb 2018 14:18:23 +0100 Subject: [PATCH] use unused character as separator --- eodb/events/management/commands/feed_repositories.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eodb/events/management/commands/feed_repositories.py b/eodb/events/management/commands/feed_repositories.py index c289c83..40bdbe2 100644 --- a/eodb/events/management/commands/feed_repositories.py +++ b/eodb/events/management/commands/feed_repositories.py @@ -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)