summaryrefslogtreecommitdiff
path: root/lib/git/index/base.py
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/git/index/base.py
parentcbb58869063fe803d232f099888fe9c23510de7b (diff)
downloadgitpython-694265664422abab56e059b5d1c3b9cc05581074.tar.gz
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/git/index/base.py')
-rw-r--r--lib/git/index/base.py3
1 files changed, 1 insertions, 2 deletions
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)