Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-shell
Commits
089df337
Commit
089df337
authored
Mar 21, 2016
by
Pablo Carranza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty key check
parent
fd0d518b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/authorized_keys
bin/authorized_keys
+2
-2
No files found.
bin/authorized_keys
View file @
089df337
#!/usr/bin/env ruby
#
# GitLab shell authorized_keys. Query
gitl
ab API to get the authorized command for a given ssh key fingerprint
# GitLab shell authorized_keys. Query
GitL
ab API to get the authorized command for a given ssh key fingerprint
#
# Ex.
# /bin/authorized_keys BASE64-KEY
...
...
@@ -11,7 +11,7 @@
#
key
=
ARGV
[
0
]
abort
"# No key provided"
if
key
.
nil?
abort
"# No key provided"
if
key
.
nil?
||
key
.
empty?
require_relative
"../lib/gitlab_init"
require_relative
"../lib/gitlab_net"
...
...
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