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
nexedi
gitlab-shell
Commits
c21a2349
Commit
c21a2349
authored
Feb 16, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make fixes to pass rubocop
parent
3c5f9ff9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
Guardfile
Guardfile
+0
-1
lib/gitlab_access_status.rb
lib/gitlab_access_status.rb
+2
-2
lib/gitlab_post_receive.rb
lib/gitlab_post_receive.rb
+7
-7
lib/gitlab_shell.rb
lib/gitlab_shell.rb
+1
-1
No files found.
Guardfile
View file @
c21a2349
...
...
@@ -21,4 +21,3 @@ guard 'rspec' do
watch
(
%r{^spec/acceptance/(.+)
\.
feature$}
)
watch
(
%r{^spec/acceptance/steps/(.+)_steps
\.
rb$}
)
{
|
m
|
Dir
[
File
.
join
(
"**/
#{
m
[
1
]
}
.feature"
)][
0
]
||
'spec/acceptance'
}
end
lib/gitlab_access_status.rb
View file @
c21a2349
...
...
@@ -15,6 +15,6 @@ class GitAccessStatus
end
def
to_json
{
status:
@status
,
message:
@message
}.
to_json
{
status:
@status
,
message:
@message
}.
to_json
end
end
lib/gitlab_post_receive.rb
View file @
c21a2349
...
...
@@ -67,7 +67,7 @@ class GitlabPostReceive
def
update_redis
queue
=
"
#{
config
.
redis_namespace
}
:queue:post_receive"
msg
=
JSON
.
dump
({
'class'
=>
'PostReceive'
,
'args'
=>
[
@repo_path
,
@actor
,
@changes
]
})
msg
=
JSON
.
dump
({
'class'
=>
'PostReceive'
,
'args'
=>
[
@repo_path
,
@actor
,
@changes
]
})
if
system
(
*
config
.
redis_command
,
'rpush'
,
queue
,
msg
,
err:
'/dev/null'
,
out:
'/dev/null'
)
return
true
...
...
lib/gitlab_shell.rb
View file @
c21a2349
...
...
@@ -91,7 +91,7 @@ class GitlabShell
# This method is not covered by Rspec because it ends the current Ruby process.
def
exec_cmd
(
*
args
)
Kernel
::
exec
({
'PATH'
=>
ENV
[
'PATH'
],
'LD_LIBRARY_PATH'
=>
ENV
[
'LD_LIBRARY_PATH'
],
'GL_ID'
=>
ENV
[
'GL_ID'
]
},
*
args
,
unsetenv_others:
true
)
Kernel
::
exec
({
'PATH'
=>
ENV
[
'PATH'
],
'LD_LIBRARY_PATH'
=>
ENV
[
'LD_LIBRARY_PATH'
],
'GL_ID'
=>
ENV
[
'GL_ID'
]
},
*
args
,
unsetenv_others:
true
)
end
def
api
...
...
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