summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-13 13:53:23 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-13 13:53:23 +0000
commit291bed5526d27cef072a58fe2da9a22b2c8b258c (patch)
tree7f28b8751f44b9e8653e6515e271fa01f582cc36
parent7354e1b89b8303620549254b86a46159a329b583 (diff)
parent2d59bd09fa58fe37e6a11a8af686b9340a8ed77d (diff)
downloadgitlab-shell-291bed5526d27cef072a58fe2da9a22b2c8b258c.tar.gz
Merge branch 'list-ecdsa' into 'master'
Include ecdsa keys in `gitlab_keys list-keys`. Addresses internal issue https://dev.gitlab.org/gitlab/gitlab-shell/issues/31. See merge request !12
-rw-r--r--CHANGELOG3
-rw-r--r--VERSION2
-rw-r--r--lib/gitlab_keys.rb2
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 533f0a0..2b8b166 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+v2.6.2
+ - Include ecdsa keys in `gitlab_keys list-keys`.
+
v2.6.1
- Write errors to stderr to get git to abort and show them as such.
diff --git a/VERSION b/VERSION
index 6a6a3d8..097a15a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.6.1
+2.6.2
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
index 100e164..1ed0ab3 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -46,7 +46,7 @@ class GitlabKeys
# key_id & public_key
# command=".../bin/gitlab-shell key-741" ... ssh-rsa AAAAB3NzaDAxx2E\n
# ^^^^^^^ ^^^^^^^^^^^^^^^
- matches = /^command=\".+?\s+(.+?)\".+?ssh-rsa\s(.+)\s*.*\n*$/.match(line)
+ matches = /^command=\".+?\s+(.+?)\".+?(?:ssh|ecdsa)-.*?\s(.+)\s*.*\n*$/.match(line)
keys << "#{matches[1]} #{matches[2]}\n" unless matches.nil?
end
keys