kopia lustrzana https://github.com/jupyterhub/repo2docker
Another f-string
rodzic
929deaceb4
commit
3cadb1832d
|
@ -38,7 +38,7 @@ class Git(ContentProvider):
|
||||||
if hash is None:
|
if hash is None:
|
||||||
self.log.error('Failed to check out ref %s', ref,
|
self.log.error('Failed to check out ref %s', ref,
|
||||||
extra=dict(phase='failed'))
|
extra=dict(phase='failed'))
|
||||||
raise ValueError(f'Failed to check out ref {ref}')
|
raise ValueError('Failed to check out ref {}'.format(ref))
|
||||||
# If the hash is resolved above, we should be able to reset to it
|
# If the hash is resolved above, we should be able to reset to it
|
||||||
for line in execute_cmd(['git', 'reset', '--hard', hash],
|
for line in execute_cmd(['git', 'reset', '--hard', hash],
|
||||||
cwd=output_dir,
|
cwd=output_dir,
|
||||||
|
|
Ładowanie…
Reference in New Issue