]> git.e2factory.org Git - e2factory.git/commitdiff
git: remove git_commit_id() scm interface
authorTobias Ulmer <tu@emlix.com>
Tue, 24 Jan 2017 18:20:24 +0000 (19:20 +0100)
committerTobias Ulmer <tu@emlix.com>
Mon, 30 Jan 2017 13:33:34 +0000 (14:33 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/git.lua

index dfef275261c1e3c00cb870b97fc9478c6a28affd..9c070a43d73d30161c2932e6a93de95ae854b888 100644 (file)
@@ -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")