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
eb4d5795
Commit
eb4d5795
authored
Sep 21, 2017
by
Jonathon Reinhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre-receive: Fix undefined local variable error
This was broken during the refactor in
c658360e
.
parent
47924c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hooks/pre-receive
hooks/pre-receive
+2
-2
No files found.
hooks/pre-receive
View file @
eb4d5795
...
...
@@ -9,7 +9,7 @@ protocol = ENV.delete('GL_PROTOCOL')
repo_path
=
Dir
.
pwd
gl_repository
=
ENV
[
'GL_REPOSITORY'
]
def
increase_reference_counter
(
gl_repository
)
def
increase_reference_counter
(
gl_repository
,
repo_path
)
result
=
GitlabNet
.
new
.
pre_receive
(
gl_repository
)
result
[
'reference_counter_increased'
]
...
...
@@ -28,7 +28,7 @@ require_relative '../lib/gitlab_net'
# and we don't want to skip it if the custom hook fails.
if
GitlabAccess
.
new
(
gl_repository
,
repo_path
,
key_id
,
refs
,
protocol
).
exec
&&
GitlabCustomHook
.
new
(
repo_path
,
key_id
).
pre_receive
(
refs
)
&&
increase_reference_counter
(
gl_repository
)
increase_reference_counter
(
gl_repository
,
repo_path
)
exit
0
else
exit
1
...
...
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