From 08a1423a022392b045a483697731ba048a3eebc4 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 8 Apr 2017 15:10:14 +0100 Subject: adds a test for server-info files in new repos Even new repositories need http server info files. --- testing/02-commands-create.yarn | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'testing') diff --git a/testing/02-commands-create.yarn b/testing/02-commands-create.yarn index 2b65fe5..b579e5b 100644 --- a/testing/02-commands-create.yarn +++ b/testing/02-commands-create.yarn @@ -25,3 +25,16 @@ comprehensible error message to that effect. THEN stderr contains CRIT: Repository creation is not permitted. FINALLY the instance is torn down + +When creating a repository, we update the HTTP server information file because +that way gitweb and the like don't get upset even if nothing has been pushed, +and HTTP smart access can be permitted, which might be necessary for the push +in the first place. + + SCENARIO created repositories have server info + + GIVEN a standard instance + + WHEN testinstance adminkey runs create foobar + THEN server-side foobar.git file objects/info/packs exists + AND server-side foobar.git file info/refs exists -- cgit v1.2.1