Skip to content

Commit

Permalink
fixed error where cd could not find the local cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cndreisbach committed Mar 12, 2010
1 parent d9a8f91 commit beb27e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.3.6
2.3.7
Expand Up @@ -87,7 +87,7 @@ def rsync_host(server)
# TODO: punt in some sensible way if local_cache exists but is a regular file.
def remove_cache_if_repo_changed
if INFO_COMMANDS[configuration[:scm]] && File.directory?(local_cache)
info_command = "cd #{local_cache} && #{INFO_COMMANDS[configuration[:scm]]}"
info_command = "cd #{File.expand_path(local_cache)} && #{INFO_COMMANDS[configuration[:scm]]}"
cached_repo_url = IO.popen(info_command){|pipe| pipe.readline}.chomp
if cached_repo_url != configuration[:repository]
logger.trace "repository has changed; removing old local cache"
Expand Down

0 comments on commit beb27e8

Please sign in to comment.