diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-23 18:31:28 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-23 18:31:28 -0700 |
commit | 915a1b86928015892b76156e5702a9a8032ce854 (patch) | |
tree | 36b66cdcc4a7c11728565db28b506026b4dcb6ba | |
parent | Refactor and alter git repo caching strategy (diff) | |
download | jitterbug-915a1b86928015892b76156e5702a9a8032ce854.tar.gz |
Attempt to fix cloning
Diffstat (limited to '')
-rw-r--r-- | lib/jitterbug/Builder.pm | 4 |
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; |