Commit a6cfe210 authored by Kirill Smelkov's avatar Kirill Smelkov

ref_to_repo: Fix format error on raise

Bug present since the beginning: 6f237f22 (git-backup: Initial draft).
parent 62374038
......@@ -623,7 +623,7 @@ def cmd_restore(argv):
def ref_to_repo(ref):
dotgit = ref.find('.git/')
if dotgit == -1:
raise RuntimeError('E: %s is not a ref for a git repo')
raise RuntimeError('E: %s is not a ref for a git repo' % ref)
repo = ref[:dotgit+4]
repo = unquote(repo) # unquote repo name we originally quoted when making backup
return repo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment