Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
5c910b94
Commit
5c910b94
authored
Feb 28, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set correct object_kind on tag push data.
parent
d57e809c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
app/services/create_tag_service.rb
app/services/create_tag_service.rb
+3
-1
app/services/git_tag_push_service.rb
app/services/git_tag_push_service.rb
+3
-2
No files found.
app/services/create_tag_service.rb
View file @
5c910b94
...
@@ -40,7 +40,9 @@ class CreateTagService < BaseService
...
@@ -40,7 +40,9 @@ class CreateTagService < BaseService
end
end
def
create_push_data
(
project
,
user
,
tag
)
def
create_push_data
(
project
,
user
,
tag
)
Gitlab
::
PushDataBuilder
.
data
=
Gitlab
::
PushDataBuilder
.
build
(
project
,
user
,
Gitlab
::
Git
::
BLANK_SHA
,
tag
.
target
,
'refs/tags/'
+
tag
.
name
,
[])
build
(
project
,
user
,
Gitlab
::
Git
::
BLANK_SHA
,
tag
.
target
,
'refs/tags/'
+
tag
.
name
,
[])
data
[
:object_kind
]
=
"tag_push"
data
end
end
end
end
app/services/git_tag_push_service.rb
View file @
5c910b94
...
@@ -16,7 +16,8 @@ class GitTagPushService
...
@@ -16,7 +16,8 @@ class GitTagPushService
private
private
def
create_push_data
(
oldrev
,
newrev
,
ref
)
def
create_push_data
(
oldrev
,
newrev
,
ref
)
Gitlab
::
PushDataBuilder
.
data
=
Gitlab
::
PushDataBuilder
.
build
(
project
,
user
,
oldrev
,
newrev
,
ref
,
[])
build
(
project
,
user
,
oldrev
,
newrev
,
ref
,
[])
data
[
:object_kind
]
=
"tag_push"
data
end
end
end
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