##// END OF EJS Templates
hooks: handle non-ascii characters in hooks new pull-requests open template.
marcink -
r3331:540b9430 default
parent child Browse files
Show More
@@ -284,17 +284,16 b' def post_push(extras):'
284 output += _http_ret.title
284 output += _http_ret.title
285
285
286 if extras.new_refs:
286 if extras.new_refs:
287 tmpl = \
287 tmpl = extras.server_url + '/' + extras.repository + \
288 extras.server_url + '/' + \
289 extras.repository + \
290 "/pull-request/new?{ref_type}={ref_name}"
288 "/pull-request/new?{ref_type}={ref_name}"
289
291 for branch_name in extras.new_refs['branches']:
290 for branch_name in extras.new_refs['branches']:
292 output += 'RhodeCode: open pull request link: {}\n'.format(
291 output += 'RhodeCode: open pull request link: {}\n'.format(
293 tmpl.format(ref_type='branch', ref_name=branch_name))
292 tmpl.format(ref_type='branch', ref_name=safe_str(branch_name)))
294
293
295 for book_name in extras.new_refs['bookmarks']:
294 for book_name in extras.new_refs['bookmarks']:
296 output += 'RhodeCode: open pull request link: {}\n'.format(
295 output += 'RhodeCode: open pull request link: {}\n'.format(
297 tmpl.format(ref_type='bookmark', ref_name=book_name))
296 tmpl.format(ref_type='bookmark', ref_name=safe_str(book_name)))
298
297
299 hook_response = ''
298 hook_response = ''
300 if not is_shadow_repo(extras):
299 if not is_shadow_repo(extras):
General Comments 0
You need to be logged in to leave comments. Login now