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
Gepetto
dashboard
Commits
917dc447
Commit
917dc447
authored
Feb 24, 2020
by
Guilhem Saurel
Browse files
stop after delete
parent
142438f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
gh/views.py
View file @
917dc447
...
...
@@ -56,6 +56,7 @@ def push(request: HttpRequest, rep: str) -> HttpResponse:
branch_u
=
ref_s
.
replace
(
'/'
,
'%2F'
)
url
=
f
'/projects/
{
project_u
}
/repository/branches/
{
branch_u
}
'
requests
.
delete
(
gitlab
.
api_url
()
+
url
,
verify
=
gitlab
.
verify
,
headers
=
gitlab
.
headers
())
return
HttpResponse
(
rep
)
if
str
(
gh_ref
.
commit
)
!=
data
[
'after'
]:
fail
=
f
'push: wrong commit:
{
gh_ref
.
commit
}
vs
{
data
[
"after"
]
}
'
...
...
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