summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/push.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/push.rb')
-rw-r--r--lib/gitlab/git/push.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/git/push.rb b/lib/gitlab/git/push.rb
index b6577ba17f1..3d533a5185f 100644
--- a/lib/gitlab/git/push.rb
+++ b/lib/gitlab/git/push.rb
@@ -33,7 +33,9 @@ module Gitlab
end
def force_push?
- Gitlab::Checks::ForcePush.force_push?(@project, @oldrev, @newrev)
+ strong_memoize(:force_push) do
+ Gitlab::Checks::ForcePush.force_push?(@project, @oldrev, @newrev)
+ end
end
def branch_push?