summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/git/util.py b/git/util.py
index 6009e158..d248b1ee 100644
--- a/git/util.py
+++ b/git/util.py
@@ -249,12 +249,15 @@ def join_path(a, *p):
'/' instead of possibly '\' on windows."""
path = a
for b in p:
+ if len(b) == 0:
+ continue
if b.startswith('/'):
path += b[1:]
elif path == '' or path.endswith('/'):
path += b
else:
path += '/' + b
+ # END for each path token to add
return path
def to_native_path_windows(path):