From 52f16e08ecbfd47b27947c8ab6eeb4088c4fc8f7 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 11 May 2016 19:46:25 +0200 Subject: [PATCH] git: use hash_append Signed-off-by: Tobias Ulmer --- plugins/git.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/git.lua b/plugins/git.lua index be39968..376cef0 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -206,9 +206,9 @@ function git.git_source:sourceid(sourceset) end hc = hash.hash_start() - hash.hash_line(hc, self._name) - hash.hash_line(hc, self._type) - hash.hash_line(hc, self._env:id()) + hash.hash_append(hc, self._name) + hash.hash_append(hc, self._type) + hash.hash_append(hc, self._env:id()) licences = self:get_licences() for licencename in licences:iter_sorted() do @@ -216,13 +216,13 @@ function git.git_source:sourceid(sourceset) if not lid then return false, re end - hash.hash_line(hc, lid) + hash.hash_append(hc, lid) end - hash.hash_line(hc, self._server) - hash.hash_line(hc, self._location) - hash.hash_line(hc, self._working) - hash.hash_line(hc, id) + hash.hash_append(hc, self._server) + hash.hash_append(hc, self._location) + hash.hash_append(hc, self._working) + hash.hash_append(hc, id) self._commitids[sourceset] = id self._sourceids[sourceset] = hash.hash_finish(hc) -- 2.39.5