]> git.e2factory.org Git - e2factory.git/commitdiff
Remove e2lib.git() for good
authorTobias Ulmer <tu@emlix.com>
Tue, 5 Nov 2013 19:33:07 +0000 (20:33 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:16 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index fd03c4133f03012f07da5b5787c2cf06ba35b5b8..d441534355d6512fd32bc568e0ae981d09edc5ba 100644 (file)
@@ -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