use "before" commit hash for comparing a range of commits

This commit is contained in:
jesopo 2018-11-17 08:28:48 +00:00
parent 5a742f05a3
commit b15ef9f739

View file

@ -100,7 +100,7 @@ class Module(ModuleManager.BaseModule):
% (full_name, added, removed, modified, author, message,
url))
else:
first_id = self._short_hash(data["commits"][0]["id"])
first_id = self._short_hash(data["before"])
last_id = self._short_hash(data["commits"][-1]["id"])
pusher = data["pusher"]["name"]
url = COMMIT_RANGE_URL % (full_name, first_id, last_id)