summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-10-04 11:37:21 +0900
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-10-04 11:37:21 +0900
commita354644df7c3c49d2961c2fd4084078d2b68135a (patch)
treecf0e8b189d4d18523e93c967b098aea810dcd09e /lib
parentfb6018f379bb4b3e200b0ca75f3c0efba15ddf48 (diff)
downloadgitano-a354644df7c3c49d2961c2fd4084078d2b68135a.tar.gz
Remove automatic user/group because we now have [user exact ...] stuff
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/lace.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/gitano/lace.lua b/lib/gitano/lace.lua
index 472502c..48b2626 100644
--- a/lib/gitano/lace.lua
+++ b/lib/gitano/lace.lua
@@ -11,30 +11,8 @@ local log = require 'gitano.log'
local pcre = require "rex_pcre"
-local function flatten_name(n)
- return n:gsub("[^A-Za-z0-9.-]", "_")
-end
-local function generate_automatics(ctx)
- local config = ctx.repo.config
- local automatics = {}
- for u in pairs(config.users) do
- automatics["user_" .. flatten_name(u)] = "user exact " .. u
- end
- for g in pairs(config.groups) do
- automatics["group_" .. flatten_name(g)] = "group exact " .. g
- end
- local ret = {}
- for k, v in pairs(automatics) do
- ret[#ret+1] = "define auto_" .. k .. " " .. v
- end
- ret[#ret+1] = "\n"
- return table.concat(ret,"\n")
-end
-
local global_lookaside = {
- ["_automatics"] = generate_automatics,
["_basis"] = [[
-include global:_automatics
include global:core
]]
}