From 59633c56eb7f7d28b24fa41d6c3be602cb3d781a Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Tue, 23 Jan 2018 18:49:07 +0100 Subject: [PATCH] fix diff command --- diffido.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diffido.py b/diffido.py index 46644de..b9bd3b0 100755 --- a/diffido.py +++ b/diffido.py @@ -216,7 +216,7 @@ def get_diff(id_, commit_id='HEAD', old_commit_id=None): logger.warn('MEHHHH %s %s %s' % (id_, commit_id, old_commit_id)) def _history(id_, commit_id, old_commit_id, queue): os.chdir('storage/%s' % id_) - p = subprocess.Popen([GIT_CMD, 'commit_id', old_commit_id or '%s~' % commit_id, commit_id], + p = subprocess.Popen([GIT_CMD, 'diff', old_commit_id or '%s~' % commit_id, commit_id], stdout=subprocess.PIPE) stdout, _ = p.communicate() queue.put(stdout)