summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2019-12-01 16:28:50 +0000
committerJelmer Vernooij <jelmer@jelmer.uk>2019-12-01 16:28:50 +0000
commit659bb4d5e42ba6777105f2908650b6e5be69feba (patch)
treed2cb080e79240f529b4f35fe498adda51ed19d98
parent25febdf3dba16da105209e59b0ed304f83689b0c (diff)
downloadpython-fastimport-git-659bb4d5e42ba6777105f2908650b6e5be69feba.tar.gz
cmd.ref is a bytestring.
-rw-r--r--fastimport/processors/info_processor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastimport/processors/info_processor.py b/fastimport/processors/info_processor.py
index 13346df..d476022 100644
--- a/fastimport/processors/info_processor.py
+++ b/fastimport/processors/info_processor.py
@@ -247,7 +247,7 @@ class InfoProcessor(processor.ImportProcessor):
def reset_handler(self, cmd):
"""Process a ResetCommand."""
self.cmd_counts[cmd.name] += 1
- if cmd.ref.startswith('refs/tags/'):
+ if cmd.ref.startswith(b'refs/tags/'):
self.lightweight_tags += 1
else:
if cmd.from_ is not None: