Match URIs that don't end in .git

Co-authored-by: Charlotte <lotte@chir.rs>
This commit is contained in:
Sandro 2022-07-01 22:21:32 +02:00 committed by emily
parent 1dac6afcdc
commit 4cda1c2abd
Signed by: snaakey
GPG key ID: F6F4C66207FCF995

View file

@ -292,6 +292,7 @@ sub push_gitea : Chained('api') PathPart('push-gitea') Args(0) {
my $in = $c->request->{data};
my $url = $in->{repository}->{clone_url} or die;
$url =~ s/.git$//;
print STDERR "got push from Gitea repository $url\n";
triggerJobset($self, $c, $_, 0) foreach $c->model('DB::Jobsets')->search(