Use Rails.root.join where appropriate
This commit is contained in:
parent
82c3f62603
commit
afc4a75499
11 changed files with 17 additions and 17 deletions
|
@ -28,7 +28,7 @@ module Gitlab
|
|||
|
||||
def process
|
||||
Grit::Git.with_timeout(30.seconds) do
|
||||
lock_file = File.join(Rails.root, "tmp", "merge_repo_#{project.path}.lock")
|
||||
lock_file = Rails.root.join("tmp", "merge_repo_#{project.path}.lock")
|
||||
|
||||
File.open(lock_file, "w+") do |f|
|
||||
f.flock(File::LOCK_EX)
|
||||
|
@ -36,7 +36,7 @@ module Gitlab
|
|||
unless project.satellite.exists?
|
||||
raise "You should run: rake gitlab:app:enable_automerge"
|
||||
end
|
||||
|
||||
|
||||
project.satellite.clear
|
||||
|
||||
Dir.chdir(project.satellite.path) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue