Show More
@@ -633,7 +633,7 b' def git_post_receive(unused_repo_path, r' | |||||
633 | branches.append(push_ref['name']) |
|
633 | branches.append(push_ref['name']) | |
634 |
|
634 | |||
635 | cmd = [settings.GIT_EXECUTABLE, 'log', |
|
635 | cmd = [settings.GIT_EXECUTABLE, 'log', | |
636 | '{old_rev}..{new_rev}'.format(**push_ref), |
|
636 | f'{push_ref["old_rev"]}..{push_ref["new_rev"]}', | |
637 | '--reverse', '--pretty=format:%H'] |
|
637 | '--reverse', '--pretty=format:%H'] | |
638 | stdout, stderr = subprocessio.run_command( |
|
638 | stdout, stderr = subprocessio.run_command( | |
639 | cmd, env=os.environ.copy()) |
|
639 | cmd, env=os.environ.copy()) |
@@ -41,8 +41,7 b' class StrictAttributeDict(AttributeDictB' | |||||
41 | try: |
|
41 | try: | |
42 | return self[attr] |
|
42 | return self[attr] | |
43 | except KeyError: |
|
43 | except KeyError: | |
44 |
raise AttributeError('{} object has no attribute {}' |
|
44 | raise AttributeError(f'{self.__class__} object has no attribute {attr}') | |
45 | self.__class__, attr)) |
|
|||
46 |
|
45 | |||
47 |
|
46 | |||
48 | class AttributeDict(AttributeDictBase): |
|
47 | class AttributeDict(AttributeDictBase): |
General Comments 0
You need to be logged in to leave comments.
Login now