OSDN Git Service

Fixes timeout when adding an SSH key
authorJeremy Mack <jmacktdkc@gmail.com>
Tue, 20 Dec 2011 14:52:04 +0000 (09:52 -0500)
committerJeremy Mack <jmacktdkc@gmail.com>
Tue, 20 Dec 2011 15:07:55 +0000 (10:07 -0500)
commit8a1deea58673b66cd99e06877914ef32b15f3944
treed6848b518323f1d10369250cc97228d788981880
parent6d5c9698726e268a9cd392a5782c055031bb1bb9
Fixes timeout when adding an SSH key

Users with many projects (>100) will hit the 20 second timeout when
updating the gitolite config. This fix batches those changes into a
signle update to the file, causing an order of magnitude speed increase
which finishes well below the 20 second timeout.

Fixes gitlabhq/gitlabhq#220
app/models/key.rb
lib/gitlabhq/gitolite.rb