about summary refs log tree commit diff
path: root/lib/jitterbug/Builder.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jitterbug/Builder.pm')
-rw-r--r--lib/jitterbug/Builder.pm4
1 files changed, 2 insertions, 2 deletions
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;