aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-07-15 17:08:14 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-07-15 17:19:22 +0200
commit694265664422abab56e059b5d1c3b9cc05581074 (patch)
tree68f57ddbc0e8b99cd032bdff388e7863b9f8d8a9 /lib
parentcbb58869063fe803d232f099888fe9c23510de7b (diff)
downloadGitPython-694265664422abab56e059b5d1c3b9cc05581074.tar.gz
GitPython-694265664422abab56e059b5d1c3b9cc05581074.zip
Index._iter_expand_paths: fixed tiny error with large impact, there was code using a / in a hardcoded fashion, leading to absolute paths where the caller expected relative ones
Diffstat (limited to 'lib')
m---------lib/git/ext/gitdb0
-rw-r--r--lib/git/index/base.py3
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/git/ext/gitdb b/lib/git/ext/gitdb
-Subproject 425ecf04aa5038c3d46b01ca20de17c51ef6c4e
+Subproject 18152febd428e67b86bb4fb68ec1691d4de75a9
diff --git a/lib/git/index/base.py b/lib/git/index/base.py
index cda52f75..bfbcf841 100644
--- a/lib/git/index/base.py
+++ b/lib/git/index/base.py
@@ -370,7 +370,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable):
def raise_exc(e):
raise e
r = self.repo.working_tree_dir
- rs = r + '/'
+ rs = r + os.sep
for path in paths:
abs_path = path
if not os.path.isabs(abs_path):
@@ -667,7 +667,6 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable):
# paths can be git-added, for everything else we use git-update-index
entries_added = list()
paths, entries = self._preprocess_add_items(items)
-
if paths and path_rewriter:
for path in paths:
abspath = os.path.abspath(path)