Skip to content

Commit 01e8b32

Browse files
committed
Missed a performance case/source of recursion complaints in the log.
This is not a major issue (or even correctness issue), but will cause complaints of recursion in the log.
1 parent db30d7e commit 01e8b32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: app/controllers/gitolite_public_keys_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ def delete
1818
end
1919

2020
def update
21+
GitHostingObserver.set_update_active(false)
2122
if @gitolite_public_key.update_attributes(params[:public_key])
2223
flash[:notice] = l(:notice_public_key_updated)
2324
redirect_to url_for(:controller => 'my', :action => 'account')
2425
else
2526
render :action => 'edit'
2627
end
28+
GitHostingObserver.set_update_active(true)
2729
end
2830

2931
def create

0 commit comments

Comments
 (0)