diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build-pkg.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index 15a5e66..2b16364 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -40,6 +40,8 @@ local TODAY = os.date("%Y%m%d") local MXE_DIR = os.getenv('MXE_DIR') or '/usr/lib/mxe' local GIT = 'git --work-tree=./usr/ --git-dir=./usr/.git ' +local GIT_USER = '-c user.name="build-pkg" ' .. + '-c user.email="build-pkg@mxe" ' local BLACKLIST = { '^usr/installed/check%-requirements$', @@ -378,9 +380,7 @@ end -- git commits changes in ./usr local function gitCommit(message) - local cmd = GIT .. '-c user.name="build-pkg" ' .. - '-c user.email="build-pkg@mxe" ' .. - 'commit -a -m %q --quiet' + local cmd = GIT .. GIT_USER .. 'commit -a -m %q --quiet' os.execute(cmd:format(message)) end |