##// END OF EJS Templates
hooks: fixed again unicode problems with new pull-request link generator
marcink -
r3503:0a6f9ae0 stable
parent child Browse files
Show More
@@ -270,7 +270,7 b' def post_push(extras):'
270 270 # make lock is a tri state False, True, None. We only release lock on False
271 271 if extras.make_lock is False and not is_shadow_repo(extras):
272 272 Repository.unlock(Repository.get_by_repo_name(extras.repository))
273 msg = 'Released lock on repo `%s`\n' % extras.repository
273 msg = 'Released lock on repo `{}`\n'.format(safe_str(extras.repository))
274 274 output += msg
275 275
276 276 if extras.locked_by[0]:
@@ -284,8 +284,8 b' def post_push(extras):'
284 284 output += _http_ret.title
285 285
286 286 if extras.new_refs:
287 tmpl = extras.server_url + '/' + extras.repository + \
288 "/pull-request/new?{ref_type}={ref_name}"
287 tmpl = '{}/{}/pull-request/new?{{ref_type}}={{ref_name}}'.format(
288 safe_str(extras.server_url), safe_str(extras.repository))
289 289
290 290 for branch_name in extras.new_refs['branches']:
291 291 output += 'RhodeCode: open pull request link: {}\n'.format(
General Comments 0
You need to be logged in to leave comments. Login now