Set ref to HEAD when starting changes analysis i (Fixes #132).

This gets rid of any invalid refs being set at a subsequent point during
execution.
This commit is contained in:
Adam Waldenberg 2017-05-13 15:38:14 +02:00
parent a56680c4b4
commit d0798d8358

View file

@ -183,6 +183,7 @@ class Changes(object):
def __init__(self, repo, hard):
self.commits = []
interval.set_ref("HEAD");
git_rev_list_p = subprocess.Popen(filter(None, ["git", "rev-list", "--reverse", "--no-merges",
interval.get_since(), interval.get_until(), "HEAD"]), bufsize=1,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)