[refs #90] fix task

This commit is contained in:
Alexander Machehin 2012-11-09 21:01:22 +06:00
parent 26af1aa27c
commit f2ccc90a4c
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ namespace :project do
say "Check pull with id:#{pull.id} (#{ind+1}/#{PullRequest.count})"
unless pull.from_project.present?
print ' its orphan! updating...'
parent_path = File.join(APP_CONFIG['root_path'], 'pull_requests', pull.to_project.owner.uname, pull.to_project.name)
parent_path = File.join(APP_CONFIG['git_path'], 'pull_requests', pull.to_project.owner.uname, pull.to_project.name)
Dir.chdir(parent_path) do
# Get an owner and project name from the pull dir
elements = Dir["#{pull.id}-*"].first.split '-' rescue []