From 7f66c9878de20be50433d31516627e55d398df48 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 24 Jan 2017 19:20:24 +0100 Subject: [PATCH] git: remove git_commit_id() scm interface Signed-off-by: Tobias Ulmer --- plugins/git.lua | 16 ---------------- 1 file changed, 16 deletions(-) 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") -- 2.39.5