Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zach van Rijn
Emily
Commits
f46c188e
Verified
Commit
f46c188e
authored
Jul 10, 2019
by
A. Wilcox
🦊
Browse files
GitLab protocol: only strip refs/heads/, not all / (thanks
@sroracle
)
parent
d2bd233d
Changes
1
Hide whitespace changes
Inline
Side-by-side
emily/inp/gitlab.py
View file @
f46c188e
...
...
@@ -23,7 +23,7 @@ class GitLab:
push_info
=
{}
push_info
[
'user'
]
=
{
'name'
:
json
[
'user_name'
],
'email'
:
json
[
'user_email'
]}
push_info
[
'branch'
]
=
json
[
'ref'
].
split
(
'/'
)[
-
1
]
push_info
[
'branch'
]
=
json
[
'ref'
].
replace
(
"refs/heads/"
,
""
,
1
)
push_info
[
'commits'
]
=
[]
for
commit
in
json
[
'commits'
]:
push_info
[
'commits'
].
append
({
'id'
:
commit
[
'id'
],
...
...
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