From 04c3358c7fffab2665ad83c08ac57761486d4104 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 5 Nov 2013 20:33:07 +0100 Subject: [PATCH] Remove e2lib.git() for good Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 39 --------------------------------------- 1 file changed, 39 deletions(-) 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 -- 2.39.5