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 ` |
|
|
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