aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/git.py')
-rw-r--r--libbe/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/git.py b/libbe/git.py
index 172c324..e15d773 100644
--- a/libbe/git.py
+++ b/libbe/git.py
@@ -26,7 +26,7 @@ def strip_git(filename):
absRepoSlashedDir = os.path.join(absRepoDir,"")
assert filename.startswith(absRepoSlashedDir), \
"file %s not in git repo %s" % (filename, absRepoSlashedDir)
- filename = filename.lstrip(absRepoSlashedDir)
+ filename = filename[len(absRepoSlashedDir):]
return filename
def invoke_client(*args, **kwargs):