From 540d0aa4068e8ff37dab384deead094bd037a13c Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 22 Nov 2011 21:56:22 +0200 Subject: [PATCH 1/3] fixd key length --- app/models/key.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/key.rb b/app/models/key.rb index 5fe30734..8231c30c 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -8,7 +8,7 @@ class Key < ActiveRecord::Base validates :key, :presence => true, :uniqueness => true, - :length => { :within => 0..1600 } + :length => { :within => 0..5000 } before_save :set_identifier after_save :update_gitosis From 1bcdc0a505831aa332826c0cebe739fee62a732a Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 22 Nov 2011 22:11:49 +0200 Subject: [PATCH 2/3] [#187] First time user try access gitosis --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5f009555..e6b85d65 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,10 @@ ssh-keygen -t rsa sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update + +cd /tmp && git clone git@localhost:gitosis-admin.git + +rm -rf gitosis-admin.git && cd ``` ## Install ruby 1.9.2 From a4fbe13fce87cb6ff2a27a2574ae25bf1dad145c Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 22 Nov 2011 22:26:07 +0200 Subject: [PATCH 3/3] =?UTF-8?q?[#243]=20=E2=80=93=20When=20user=20adds=20f?= =?UTF-8?q?irst=20key=20the=20add=20a=20key=20message=20should=20go=20away?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/keys/create.js.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/keys/create.js.haml b/app/views/keys/create.js.haml index 7b92be77..a995c355 100644 --- a/app/views/keys/create.js.haml +++ b/app/views/keys/create.js.haml @@ -2,6 +2,7 @@ :plain $("#new_key_dialog").dialog("close"); $("#keys-table").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key} ))}"); + $("#no_ssh_key_defined").hide(); - else :plain $("#new_key_dialog").empty();