summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorDavid Black <dblack@atlassian.com>2014-11-12 15:50:15 +1100
committerDavid Black <dblack@atlassian.com>2014-11-12 15:50:15 +1100
commitc390e223553964fc8577d6837caf19037c4cd6f6 (patch)
treeec811b92615e0ef8c5382cc461451d013bdd2772 /git
parente8987f2746637cbe518e6fe5cf574a9f151472ed (diff)
downloadgitpython-c390e223553964fc8577d6837caf19037c4cd6f6.tar.gz
Fix the Repo commit and tree methods to work with unicode revs.
Signed-off-by: David Black <dblack@atlassian.com>
Diffstat (limited to 'git')
-rw-r--r--git/repo/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 8191b305..a45d215e 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -376,7 +376,7 @@ class Repo(object):
if rev is None:
return self.head.commit
else:
- return self.rev_parse(str(rev)+"^0")
+ return self.rev_parse(unicode(rev)+"^0")
def iter_trees(self, *args, **kwargs):
""":return: Iterator yielding Tree objects
@@ -399,7 +399,7 @@ class Repo(object):
if rev is None:
return self.head.commit.tree
else:
- return self.rev_parse(str(rev)+"^{tree}")
+ return self.rev_parse(unicode(rev)+"^{tree}")
def iter_commits(self, rev=None, paths='', **kwargs):
"""A list of Commit objects representing the history of a given ref/commit