Don't use shortened commit hashes to make URLs
This commit is contained in:
parent
b4fca127d1
commit
35ba165e0c
1 changed files with 3 additions and 3 deletions
|
@ -436,7 +436,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
if len(data["commits"]) <= 3:
|
||||
for commit in data["commits"]:
|
||||
id = self._short_hash(commit["id"])
|
||||
id = commit["id"]
|
||||
message = commit["message"].split("\n")[0].strip()
|
||||
author = utils.irc.bold(data["pusher"]["name"])
|
||||
url = self._short_url(COMMIT_URL % (full_name, id))
|
||||
|
@ -450,8 +450,8 @@ class Module(ModuleManager.BaseModule):
|
|||
% (author, forced, branch, added, removed, modified,
|
||||
message, url))
|
||||
else:
|
||||
first_id = self._short_hash(data["before"])
|
||||
last_id = self._short_hash(data["commits"][-1]["id"])
|
||||
first_id = data["before"]
|
||||
last_id = data["commits"][-1]["id"]
|
||||
pusher = utils.irc.bold(data["pusher"]["name"])
|
||||
url = self._short_url(
|
||||
COMMIT_RANGE_URL % (full_name, first_id, last_id))
|
||||
|
|
Loading…
Reference in a new issue