fix diff command
This commit is contained in:
parent
3df77754cd
commit
59633c56eb
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
logger.warn('MEHHHH %s %s %s' % (id_, commit_id, old_commit_id))
|
||||||
def _history(id_, commit_id, old_commit_id, queue):
|
def _history(id_, commit_id, old_commit_id, queue):
|
||||||
os.chdir('storage/%s' % id_)
|
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=subprocess.PIPE)
|
||||||
stdout, _ = p.communicate()
|
stdout, _ = p.communicate()
|
||||||
queue.put(stdout)
|
queue.put(stdout)
|
||||||
|
|
Loading…
Reference in a new issue