summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-11-04 12:37:45 -0500
committerJesse Luehrs <doy@tozt.net>2014-11-04 12:37:45 -0500
commit178a0175c5d021a713eae83dfc143bb2d886ec43 (patch)
tree4798a1daaa00f5b6f137eb3c1bd666cfd419c105
downloadcrawl-mirrorer-178a0175c5d021a713eae83dfc143bb2d886ec43.tar.gz
crawl-mirrorer-178a0175c5d021a713eae83dfc143bb2d886ec43.zip
initial commit
-rw-r--r--mirror.psgi12
1 files changed, 12 insertions, 0 deletions
diff --git a/mirror.psgi b/mirror.psgi
new file mode 100644
index 0000000..90d02fa
--- /dev/null
+++ b/mirror.psgi
@@ -0,0 +1,12 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+use Plack::Request;
+
+sub {
+ my $req = Plack::Request->new($_[0]);
+ system("git fetch --prune --tags");
+ system("git push --mirror");
+ return [200, ['Content-Type' => 'text/plain'], ['']];
+};