Commit Diff


commit - 529845f7bad44e45a8197d83ce1cbdfab8679168
commit + 3971b9ccd9e783bdb978185ca7ceb03db3da3bf6
blob - fe8e067cc2ac2d770df4174cda59f40f4cf1bc12
blob + 9ea392b4f262dcfddf5cccc7a1842d312e0f4673
--- dulwich/refs.py
+++ dulwich/refs.py
@@ -1155,7 +1155,7 @@ def _set_default_branch(
             head_ref = LOCAL_TAG_PREFIX + branch
         else:
             raise ValueError(
-                "%s is not a valid branch or tag" % os.fsencode(branch)
+                "%r is not a valid branch or tag" % os.fsencode(branch)
             )
     elif origin_head:
         head_ref = origin_head