diff --git a/CHANGELOG b/CHANGELOG index f6843aaa6a9745478aef5d0fab6e8a402b012f21..4ddb2c2ea7d0a08499df3a2772851aefd92a518d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -20,6 +20,7 @@ v 7.1.0 - Show VERSION information on project sidebar - Improve branch removal logic when accept MR - Fix bug where comment form is spawned inside the Reply button + - Remove Dir.chdir from Satellite#lock for thread-safety v 7.0.0 - The CPU no longer overheats when you hold down the spacebar diff --git a/Gemfile.lock b/Gemfile.lock index 97d3d8bab641c0ab5b90ceb8d5cf03483c46186f..8e48eb9fe7255d638ad275d1a1ad02a9b1434ad0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -165,7 +165,7 @@ GEM multi_json gitlab-grack (2.0.0.pre) rack (~> 1.5.1) - gitlab-grit (2.6.9) + gitlab-grit (2.6.10) charlock_holmes (~> 0.6) diff-lcs (~> 1.1) mime-types (~> 1.15) diff --git a/lib/gitlab/satellite/satellite.rb b/lib/gitlab/satellite/satellite.rb index 05123ad9c4181edbaac966b9d3a684101b0c85cf..7c058b58c4c967e70a37cb32fd9d25840171606d 100644 --- a/lib/gitlab/satellite/satellite.rb +++ b/lib/gitlab/satellite/satellite.rb @@ -53,7 +53,7 @@ module Gitlab File.open(lock_file, "w+") do |f| begin f.flock File::LOCK_EX - Dir.chdir(path) { return yield } + yield ensure f.flock File::LOCK_UN end