5 # this is hardcoded; change it if needed
10 # ----------------------------------------------------------------------
20 # try an invalid config key
27 try
"ADMIN_PUSH set1; /FATAL/" or die text
();
29 /git config \\'foo.bar\\' not allowed/
30 /check GIT_CONFIG_KEYS in the rc file/
33 # make foo.bar a valid gc key
34 $ENV{G3T_RC
} = "$ENV{HOME}/g3trc";
35 put
"$ENV{G3T_RC}", "\$rc{GIT_CONFIG_KEYS} = 'foo\.bar';\n";
62 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
64 my $rb = `gitolite query-rc -n GL_REPO_BASE`;
67 egrep foo\\|bar *.git/config
69 $t = join("\n", sort (lines
()));
71 cmp $t, 'bar.git/config: bar = one
72 bar.git/config: bare = true
74 foo.git/config: bar = f1
75 foo.git/config: bare = true
77 frob.git/config: bar = dft
78 frob.git/config: bare = true
80 gitolite-admin.git/config: bare = true
81 testing.git/config: bar = dft
82 testing.git/config: bare = true
83 testing.git/config:[foo]';
99 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
103 egrep foo\\|bar *.git/config
105 $t = join("\n", sort (lines
()));
107 cmp $t, 'bar.git/config: bar = one
108 bar.git/config: bare = true
110 foo.git/config: bar = f1
111 foo.git/config: bare = true
113 frob.git/config: bar = none
114 frob.git/config: bare = true
115 frob.git/config:[foo]
116 gitolite-admin.git/config: bare = true
117 testing.git/config: bar = dft
118 testing.git/config: bare = true
119 testing.git/config:[foo]';
131 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
135 egrep foo\\|bar *.git/config
137 $t = join("\n", sort (lines
()));
139 cmp $t, 'bar.git/config: bare = true
141 foo.git/config: bar = f1
142 foo.git/config: bare = true
144 frob.git/config: bar = none
145 frob.git/config: bare = true
146 frob.git/config:[foo]
147 gitolite-admin.git/config: bare = true
148 testing.git/config: bar = dft
149 testing.git/config: bare = true
150 testing.git/config:[foo]';
160 repo bar/CREATOR/[one].*
168 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
170 glt ls-remote u2 file:///bar/u2/one; ok; /Initialized empty/
171 glt ls-remote u2 file:///bar/u2/two; !ok; /DENIED by fallthru/
176 find . -name config | xargs egrep foo\\|bar
178 $t = join("\n", sort (lines
()));
180 cmp $t, './bar/u2/one.git/config: bar = one
181 ./bar/u2/one.git/config: bare = true
182 ./bar/u2/one.git/config:[foo]
183 ./foo.git/config: bar = f1
184 ./foo.git/config: bare = true
185 ./foo.git/config:[foo]
186 ./frob.git/config: bar = f1
187 ./frob.git/config: bare = true
188 ./frob.git/config:[foo]
189 ./gitolite-admin.git/config: bare = true
190 ./testing.git/config: bar = dft
191 ./testing.git/config: bare = true
192 ./testing.git/config:[foo]';