Verified Commit f46c188e authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

GitLab protocol: only strip refs/heads/, not all / (thanks @sroracle)

parent d2bd233d
......@@ -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'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment