Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-org
gitlab-exporter
Commits
ccd8c16b
Commit
ccd8c16b
authored
Nov 10, 2016
by
Ahmad Sherif
Browse files
Fix a rubocop offense
parent
e6194703
Pipeline
#23552
passed with stage
in 1 minute and 14 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
lib/gitlab_monitor/git.rb
View file @
ccd8c16b
...
...
@@ -122,7 +122,8 @@ module GitLab
cmd_splitted
=
cmd
.
split
(
"
\u
0000"
)
# cmdline does not return it space-separated
cmd_splitted
.
shift
# Because it's "git"
cmd_splitted
.
shift
while
cmd_splitted
.
first
&&
(
cmd_splitted
.
first
.
empty?
||
cmd_splitted
.
first
!~
/^[^-][a-z\-]*$/
)
cmd_splitted
.
shift
while
cmd_splitted
.
first
&&
(
cmd_splitted
.
first
.
empty?
||
cmd_splitted
.
first
!~
/^[^-][a-z\-]*$/
)
cmd_splitted
[
0
]
end
...
...
Write
Preview
Supports
Markdown
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