From: Tobias Ulmer Date: Tue, 5 Nov 2013 19:33:07 +0000 (+0100) Subject: Remove e2lib.git() for good X-Git-Tag: e2factory-2.3.15rc1~410 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=04c3358c7fffab2665ad83c08ac57761486d4104;p=e2factory.git Remove e2lib.git() for good Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index fd03c41..d441534 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1842,45 +1842,6 @@ function e2lib.call_tool_argv_capture(tool, argv, capturefn) return true end ---- call git --- @param gitdir string: GIT_DIR (optional, defaults to ".git") --- @param subtool string: git tool name --- @param args string: arguments to pass to the tool (optional) --- @return bool --- @return an error object on failure -function e2lib.git(gitdir, subtool, args) - local rc, re, e, git, call - - e = err.new("calling git failed") - - if not gitdir then - gitdir = ".git" - end - - if not args then - args = "" - end - - git, re = tools.get_tool("git") - if not git then - return false, e:cat(re) - end - - call = string.format("GIT_DIR=%s %s %s %s", - e2lib.shquote(gitdir), e2lib.shquote(git), e2lib.shquote(subtool), args) - rc, re = e2lib.callcmd_log(call) - if not rc or rc ~= 0 then - return false, e:cat(re) - end - - return true -end - -function e2lib.git_argv(argv) - return e2lib.call_tool_argv("git") -end - - --- call the svn command -- @param argv table: vector with arguments for svn -- @return bool