[refs #90] create a "new" pull at another dir

This commit is contained in:
Alexander Machehin 2012-11-14 16:52:26 +06:00
parent 8df87ed292
commit 8ad53f4c0b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class PullRequest < ActiveRecord::Base
def path
filename = [id, from_project_owner_uname, from_project_name].compact.join('-')
File.join(APP_CONFIG['git_path'], 'pull_requests', to_project.owner.uname, to_project.name, filename)
File.join(APP_CONFIG['git_path'], 'pull_requests', new_record? ? 'tmp' : '', to_project.owner.uname, to_project.name, filename)
end
def from_branch