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
4157d523
Commit
4157d523
authored
Nov 19, 2014
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Restore hooks PATH before calling ruby."
This reverts commit
cd9e7963
.
parent
b7a1a252
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
68 deletions
+50
-68
CHANGELOG
CHANGELOG
+0
-3
hooks/post-receive
hooks/post-receive
+17
-4
hooks/post-receive-main.rb
hooks/post-receive-main.rb
+0
-18
hooks/pre-receive
hooks/pre-receive
+17
-4
hooks/pre-receive-main.rb
hooks/pre-receive-main.rb
+0
-18
hooks/update
hooks/update
+16
-4
hooks/update-main.rb
hooks/update-main.rb
+0
-17
No files found.
CHANGELOG
View file @
4157d523
v2.3.0
- Restore PATH before calling hooks
v2.2.0
- Support for custom hooks (Drew Blessing and Jose Kahan)
...
...
hooks/post-receive
View file @
4157d523
#!/usr/bin/env
bash
#!/usr/bin/env
ruby
# Remove paths Git automatically prepends to PATH on hooks.
export
PATH
=
"
$GITLAB_PATH_OUTSIDE_HOOK
"
ruby
"
$GIT_DIR
/hooks/post-receive-main.rb"
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
refs
=
ARGF
.
read
key_id
=
ENV
[
'GL_ID'
]
repo_path
=
Dir
.
pwd
require_relative
'../lib/gitlab_custom_hook'
require_relative
'../lib/gitlab_post_receive'
if
GitlabPostReceive
.
new
(
repo_path
,
key_id
,
refs
).
exec
&&
GitlabCustomHook
.
new
.
post_receive
(
refs
,
repo_path
)
exit
0
else
exit
1
end
hooks/post-receive-main.rb
deleted
100644 → 0
View file @
b7a1a252
#!/usr/bin/env ruby
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
refs
=
ARGF
.
read
key_id
=
ENV
[
'GL_ID'
]
repo_path
=
Dir
.
pwd
require_relative
'../lib/gitlab_custom_hook'
require_relative
'../lib/gitlab_post_receive'
if
GitlabPostReceive
.
new
(
repo_path
,
key_id
,
refs
).
exec
&&
GitlabCustomHook
.
new
.
post_receive
(
refs
,
repo_path
)
exit
0
else
exit
1
end
hooks/pre-receive
View file @
4157d523
#!/usr/bin/env
bash
#!/usr/bin/env
ruby
# Remove paths Git automatically prepends to PATH on hooks.
export
PATH
=
"
$GITLAB_PATH_OUTSIDE_HOOK
"
ruby
"
$GIT_DIR
/hooks/pre-receive-main.rb"
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
refs
=
ARGF
.
read
key_id
=
ENV
[
'GL_ID'
]
repo_path
=
Dir
.
pwd
require_relative
'../lib/gitlab_custom_hook'
require_relative
'../lib/gitlab_access'
if
GitlabAccess
.
new
(
repo_path
,
key_id
,
refs
).
exec
&&
GitlabCustomHook
.
new
.
pre_receive
(
refs
,
repo_path
)
exit
0
else
exit
1
end
hooks/pre-receive-main.rb
deleted
100755 → 0
View file @
b7a1a252
#!/usr/bin/env ruby
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
refs
=
ARGF
.
read
key_id
=
ENV
[
'GL_ID'
]
repo_path
=
Dir
.
pwd
require_relative
'../lib/gitlab_custom_hook'
require_relative
'../lib/gitlab_access'
if
GitlabAccess
.
new
(
repo_path
,
key_id
,
refs
).
exec
&&
GitlabCustomHook
.
new
.
pre_receive
(
refs
,
repo_path
)
exit
0
else
exit
1
end
hooks/update
View file @
4157d523
#!/usr/bin/env
bash
#!/usr/bin/env
ruby
# Remove paths Git automatically prepends to PATH on hooks.
export
PATH
=
"
$GITLAB_PATH_OUTSIDE_HOOK
"
ruby
"
$GIT_DIR
/hooks/update-main.rb"
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
ref_name
=
ARGV
[
0
]
old_value
=
ARGV
[
1
]
new_value
=
ARGV
[
2
]
repo_path
=
Dir
.
pwd
require_relative
'../lib/gitlab_custom_hook'
if
GitlabCustomHook
.
new
.
update
(
ref_name
,
old_value
,
new_value
,
repo_path
)
exit
0
else
exit
1
end
hooks/update-main.rb
deleted
100755 → 0
View file @
b7a1a252
#!/usr/bin/env ruby
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
ref_name
=
ARGV
[
0
]
old_value
=
ARGV
[
1
]
new_value
=
ARGV
[
2
]
repo_path
=
Dir
.
pwd
require_relative
'../lib/gitlab_custom_hook'
if
GitlabCustomHook
.
new
.
update
(
ref_name
,
old_value
,
new_value
,
repo_path
)
exit
0
else
exit
1
end
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