diff --git a/openstack_election/utils.py b/openstack_election/utils.py index 3cf18b8c..da3e451f 100644 --- a/openstack_election/utils.py +++ b/openstack_election/utils.py @@ -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):