summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-02-12 13:18:23 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-02-12 13:18:23 (GMT)
commit977609be61c0c55d92790397317233d48f9cdec6 (patch)
tree865808d90e762ac2fb12bba0162da54b86379aef
parent2aaaadcfd818ea5fbcdc65a4769e7384f4160b9e (diff)
downloadeodb-977609be61c0c55d92790397317233d48f9cdec6.zip
eodb-977609be61c0c55d92790397317233d48f9cdec6.tar.gz
eodb-977609be61c0c55d92790397317233d48f9cdec6.tar.bz2
use unused character as separator
-rw-r--r--eodb/events/management/commands/feed_repositories.py6
1 files 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)