summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 906ee585..cb226acb 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -21,7 +21,6 @@ from collections import OrderedDict
from textwrap import dedent
from git.compat import (
- string_types,
defenc,
force_bytes,
safe_decode,
@@ -1038,7 +1037,7 @@ class Git(LazyMixin):
if isinstance(ref, bytes):
# Assume 40 bytes hexsha - bin-to-ascii for some reason returns bytes, not text
refstr = ref.decode('ascii')
- elif not isinstance(ref, string_types):
+ elif not isinstance(ref, str):
refstr = str(ref) # could be ref-object
if not refstr.endswith("\n"):