[refs #90] create a "new" pull at another dir
This commit is contained in:
parent
8df87ed292
commit
8ad53f4c0b
|
@ -85,7 +85,7 @@ class PullRequest < ActiveRecord::Base
|
||||||
|
|
||||||
def path
|
def path
|
||||||
filename = [id, from_project_owner_uname, from_project_name].compact.join('-')
|
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
|
end
|
||||||
|
|
||||||
def from_branch
|
def from_branch
|
||||||
|
|
Loading…
Reference in New Issue