Merge "Use git log --follow to support renaming"

This commit is contained in:
Jenkins 2016-09-14 00:30:18 +00:00 committed by Gerrit Code Review
commit 428920a7aa

View File

@ -71,8 +71,9 @@ def gerrit_query(url):
def get_email(filepath):
return subprocess.Popen(["git", "log", "--format=%aE", filepath],
stdout=subprocess.PIPE).stdout.readlines()[-1][:-1]
cmd = ["git", "log", "--follow", "--format=%aE", filepath]
git = subprocess.Popen(cmd, stdout=subprocess.PIPE)
return git.stdout.readlines()[-1][:-1]
def get_fullname(filepath):