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
140 foo.git/config: bar = f1
141 foo.git/config: bare = true
143 frob.git/config: bar = none
144 frob.git/config: bare = true
145 frob.git/config:[foo]
146 gitolite-admin.git/config: bare = true
147 testing.git/config: bar = dft
148 testing.git/config: bare = true
149 testing.git/config:[foo]';
159 repo bar/CREATOR/[one].*
167 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
169 glt ls-remote u2 file:///bar/u2/one; ok; /Initialized empty/
170 glt ls-remote u2 file:///bar/u2/two; !ok; /DENIED by fallthru/
175 find . -name config | xargs egrep foo\\|bar
177 $t = join("\n", sort (lines
()));
179 cmp $t, './bar/u2/one.git/config: bar = one
180 ./bar/u2/one.git/config: bare = true
181 ./bar/u2/one.git/config:[foo]
182 ./foo.git/config: bar = f1
183 ./foo.git/config: bare = true
184 ./foo.git/config:[foo]
185 ./frob.git/config: bar = f1
186 ./frob.git/config: bare = true
187 ./frob.git/config:[foo]
188 ./gitolite-admin.git/config: bare = true
189 ./testing.git/config: bar = dft
190 ./testing.git/config: bare = true
191 ./testing.git/config:[foo]';