summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-07-20 15:22:32 +0800
committerSebastian Thiel <sthiel@thoughtworks.com>2019-07-20 15:22:32 +0800
commit3b13c115994461fb6bafe5dd06490aae020568c1 (patch)
tree9a1e0a8fc9ec0e8bdb7554def440b642ac303a2c
parentda8aeec539da461b2961ca72049df84bf30473e1 (diff)
parenta77eab2b5668cd65a3230f653f19ee00c34789bf (diff)
downloadgitpython-3b13c115994461fb6bafe5dd06490aae020568c1.tar.gz
Merge branch 'PR-non-ascii-filenames' of https://github.com/xarx00/GitPython into xarx00-PR-non-ascii-filenames
-rw-r--r--git/compat.py5
-rw-r--r--git/repo/base.py1
-rw-r--r--requirements.txt3
3 files changed, 8 insertions, 1 deletions
diff --git a/git/compat.py b/git/compat.py
index b63768f3..02dc69de 100644
--- a/git/compat.py
+++ b/git/compat.py
@@ -30,7 +30,10 @@ PY3 = sys.version_info[0] >= 3
is_win = (os.name == 'nt')
is_posix = (os.name == 'posix')
is_darwin = (os.name == 'darwin')
-defenc = sys.getdefaultencoding()
+if hasattr(sys, 'getfilesystemencoding'):
+ defenc = sys.getfilesystemencoding()
+if defenc is None:
+ defenc = sys.getdefaultencoding()
if PY3:
import io
diff --git a/git/repo/base.py b/git/repo/base.py
index f3587080..911494ad 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -4,6 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+from builtins import str
from collections import namedtuple
import logging
import os
diff --git a/requirements.txt b/requirements.txt
index 63d5ddfe..eacd5f54 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1 +1,4 @@
gitdb2 (>=2.0.0)
+gitdb>=0.6.4
+ddt>=1.1.1
+future>=0.9