From 915a1b86928015892b76156e5702a9a8032ce854 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 23 May 2011 18:31:28 -0700 Subject: Attempt to fix cloning --- lib/jitterbug/Builder.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/jitterbug') diff --git a/lib/jitterbug/Builder.pm b/lib/jitterbug/Builder.pm index 5befade..7a06ecb 100644 --- a/lib/jitterbug/Builder.pm +++ b/lib/jitterbug/Builder.pm @@ -109,7 +109,7 @@ sub _prepare_git_repo { # cached git repo, then checkout the correct sha1 debug("build_dir = $build_dir"); - unless ( -d $cached_repo_dir ) { + unless ( -d catfile($cached_repo_dir,$name) ) { # If this is the first time, the repo won't exist yet # Clone it into our cached repo directory _clone_into($repo, $cached_repo_dir); @@ -119,7 +119,7 @@ sub _prepare_git_repo { chdir $cached_repo_dir; # TODO: Error Checking - debug("Fetching new commits into $repo"); + debug("Fetching new commits into $cached_repo_dir"); system("git fetch --prune"); chdir $pwd; -- cgit 1.4.1