summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-09-28 10:50:43 +0200
committerJacob Vosmaer <jacob@gitlab.com>2018-09-28 10:50:43 +0200
commit05441b826b7dc39b1523123e00bf00ce497ef75d (patch)
tree23e3af91b4e164a08080a64561f8881373fa9976 /bin
parent1cc2993f357c4467e4d45c54c01d2307103efb3e (diff)
downloadgitlab-shell-no-glid-argument.tar.gz
Remove mistaken support for `gitlab-shell user-123`gitlab-shell-no-glid-argument
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gitlab-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gitlab-shell b/bin/gitlab-shell
index 93a79f6..8d43cf1 100755
--- a/bin/gitlab-shell
+++ b/bin/gitlab-shell
@@ -19,7 +19,7 @@ require File.join(ROOT_PATH, 'lib', 'gitlab_shell')
# We must match e.g. "key-12345" anywhere on the command-line. See
# https://gitlab.com/gitlab-org/gitlab-shell/issues/145
-who = /\b(?:(?:key|user)-[0-9]+|username-\S+)\b/.match(ARGV.join(' ')).to_s
+who = /\b(?:(?:key)-[0-9]+|username-\S+)\b/.match(ARGV.join(' ')).to_s
if GitlabShell.new(who).exec(original_cmd)
exit 0