From: Tobias Ulmer Date: Tue, 24 Jan 2017 18:20:24 +0000 (+0100) Subject: git: remove git_commit_id() scm interface X-Git-Tag: e2factory-2.3.17~37 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=7f66c9878de20be50433d31516627e55d398df48;p=e2factory.git git: remove git_commit_id() scm interface Signed-off-by: Tobias Ulmer --- diff --git a/plugins/git.lua b/plugins/git.lua index dfef275..9c070a4 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -52,17 +52,6 @@ local function git_plugin_init(ctx) return false, re end - -- Additional interfaces only available with git sources. - rc, re = scm.register_interface("git_commit_id") - if not rc then - return false, re - end - - rc, re = scm.register_function("git", "git_commit_id", git.git_commit_id) - if not rc then - return false, re - end - if e2tool.current_tool() == "fetch-sources" then e2option.flag("git", "select git sources") end @@ -702,13 +691,8 @@ function git.git_source:prepare_source(sourceset, buildpath) return true end - -------------------------------------------------------------------------------- -function git.git_commit_id(info, sourcename, sourceset, check_remote) - return source.sources[sourcename]:git_commit_id(info, sourcename, sourceset, check_remote) -end - function git.toresult(info, sourcename, sourceset, directory) local rc, re, argv local e = err.new("converting result")