From a6cfe210f8bad8a816364220f148957cfdb75a41 Mon Sep 17 00:00:00 2001
From: Kirill Smelkov <kirr@nexedi.com>
Date: Mon, 20 Jun 2016 18:02:05 +0300
Subject: [PATCH] ref_to_repo: Fix format error on raise

Bug present since the beginning: 6f237f22 (git-backup: Initial draft).
---
 git-backup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-backup b/git-backup
index d4a7f7b..8aa6fbc 100755
--- a/git-backup
+++ b/git-backup
@@ -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
-- 
2.30.9