Show More
@@ -284,17 +284,16 b' def post_push(extras):' | |||
|
284 | 284 | output += _http_ret.title |
|
285 | 285 | |
|
286 | 286 | if extras.new_refs: |
|
287 | tmpl = \ | |
|
288 | extras.server_url + '/' + \ | |
|
289 | extras.repository + \ | |
|
290 | "/pull-request/new?{ref_type}={ref_name}" | |
|
287 | tmpl = extras.server_url + '/' + extras.repository + \ | |
|
288 | "/pull-request/new?{ref_type}={ref_name}" | |
|
289 | ||
|
291 | 290 | for branch_name in extras.new_refs['branches']: |
|
292 | 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 | 294 | for book_name in extras.new_refs['bookmarks']: |
|
296 | 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 | 298 | hook_response = '' |
|
300 | 299 | if not is_shadow_repo(extras): |
General Comments 0
You need to be logged in to leave comments.
Login now