Merge "Use git log --follow to support renaming"
This commit is contained in:
commit
428920a7aa
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user