From 8a2693f255557450bdd21d314989ff6e02759680 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 15 Feb 2010 03:56:04 -0600 Subject: tick already fetches at the beginning --- lib/Crawl/Bot/Plugin/Commit.pm | 5 +---- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3-54-g00ecf