Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
7ebba27d
Commit
7ebba27d
authored
Nov 22, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.gitlabhq.com:gitlabhq
parents
b5602410
a4fbe13f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
README.md
README.md
+4
-0
app/models/key.rb
app/models/key.rb
+1
-1
app/views/keys/create.js.haml
app/views/keys/create.js.haml
+1
-0
No files found.
README.md
View file @
7ebba27d
...
@@ -71,6 +71,10 @@ ssh-keygen -t rsa
...
@@ -71,6 +71,10 @@ ssh-keygen -t rsa
sudo
-H
-u
git gitosis-init < ~/.ssh/id_rsa.pub
sudo
-H
-u
git gitosis-init < ~/.ssh/id_rsa.pub
sudo chmod
755 /home/git/repositories/gitosis-admin.git/hooks/post-update
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
## Install ruby 1.9.2
...
...
app/models/key.rb
View file @
7ebba27d
...
@@ -8,7 +8,7 @@ class Key < ActiveRecord::Base
...
@@ -8,7 +8,7 @@ class Key < ActiveRecord::Base
validates
:key
,
validates
:key
,
:presence
=>
true
,
:presence
=>
true
,
:uniqueness
=>
true
,
:uniqueness
=>
true
,
:length
=>
{
:within
=>
0
..
16
00
}
:length
=>
{
:within
=>
0
..
50
00
}
before_save
:set_identifier
before_save
:set_identifier
after_save
:update_gitosis
after_save
:update_gitosis
...
...
app/views/keys/create.js.haml
View file @
7ebba27d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
:plain
:plain
$("#new_key_dialog").dialog("close");
$("#new_key_dialog").dialog("close");
$("#keys-table").append("
#{
escape_javascript
(
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
@key
}
))
}
");
$("#keys-table").append("
#{
escape_javascript
(
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
@key
}
))
}
");
$("#no_ssh_key_defined").hide();
-
else
-
else
:plain
:plain
$("#new_key_dialog").empty();
$("#new_key_dialog").empty();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment