summaryrefslogtreecommitdiff
path: root/lib/gall/ll.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gall/ll.lua')
-rw-r--r--lib/gall/ll.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/gall/ll.lua b/lib/gall/ll.lua
index 7f20683..24f76bb 100644
--- a/lib/gall/ll.lua
+++ b/lib/gall/ll.lua
@@ -65,8 +65,11 @@ local function _rungit(t)
return why, stdout, stderr
end
-local function _setgit(e)
- git_exe = e
+local function get_set_git(e)
+ if e then
+ git_exe = e
+ end
+ return git_exe
end
local function _chomp(s)
@@ -76,7 +79,7 @@ end
local mod_ret = {
rungit = _rungit,
- setgit = _setgit,
+ get_set_git = get_set_git,
chomp = _chomp
}