Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

@@lockfile => @@lock_file

  • Loading branch information...
commit 52c1f873a08ea562fc27541d546d623cd5259caa 1 parent 82cf552
@ericpaulbishop authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/git_hosting.rb
View
8 lib/git_hosting.rb
@@ -266,12 +266,12 @@ def self.update_git_exec
def self.lock(retries)
is_locked = false
local_dir = get_tmp_dir()
- if @@lockfile.nil?
+ if @@lock_file.nil?
@@lock_file=File.new(File.join(local_dir,'redmine_git_hosting_lock'),File::CREAT|File::RDONLY)
end
while retries > 0
- is_locked = @@lockfile.flock(File::LOCK_EX|File::LOCK_NB)
+ is_locked = @@lock_file.flock(File::LOCK_EX|File::LOCK_NB)
retries-=1
if (!is_locked) && retries > 0
sleep 1
@@ -281,8 +281,8 @@ def self.lock(retries)
end
def self.unlock
- if !@@lockfile.nil?
- @@lockfile.flock(File::LOCK_UN)
+ if !@@lock_file.nil?
+ @@lock_file.flock(File::LOCK_UN)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.