summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-02-15 03:56:04 -0600
committerJesse Luehrs <doy@tozt.net>2010-02-15 03:56:04 -0600
commit8a2693f255557450bdd21d314989ff6e02759680 (patch)
tree9021d151902a17156a90bc8ec72c5680df4001c7
parent84a9458ca2f34d779b8a847a32fb82be058d2403 (diff)
downloadcrawlbot-8a2693f255557450bdd21d314989ff6e02759680.tar.gz
crawlbot-8a2693f255557450bdd21d314989ff6e02759680.zip
tick already fetches at the beginning
-rw-r--r--lib/Crawl/Bot/Plugin/Commit.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm
index 5bb59cd..d21fae8 100644
--- a/lib/Crawl/Bot/Plugin/Commit.pm
+++ b/lib/Crawl/Bot/Plugin/Commit.pm
@@ -19,10 +19,7 @@ has checkout => (
my $checkout = File::Spec->catdir($self->data_dir, 'crawl-ref');
mkdir $checkout unless -d $checkout;
my $dir = pushd($checkout);
- if (-f 'HEAD') {
- system('git fetch');
- }
- else {
+ if (!-f 'HEAD') {
system('git clone --mirror ' . $self->repo_uri . " $checkout");
}
$checkout;