def pushtrigger(self, reponame, username):
# Make a callback to a local varnish server to purge a repository
- # from it. Assumes gitweb style URLs.
+ # from it, both gitweb and cgit.
# Also, purge the actual http serving git repo itself.
for u in [
r'^/gitweb/?$',
r'^/gitweb/\?p=%s.git' % reponame,
r'^/git/%s' % reponame,
+ r'^/cgit/?$',
+ r'^/cgit/%s' % reponame,
]:
if not self._internal_purge(u):
print("Varnish purge failed, website may become slightly out of date")