aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-16 15:37:14 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-16 15:37:14 -0500
commit2b071a28a2cedab54c713948c6b6f4bd27bb45e2 (patch)
tree650c4eaca616c2c7bd0d883fabc1dda0b790db88 /libbe
parentb5959aee578055431eeb80befde7272754b2b8ad (diff)
downloadbugseverywhere-2b071a28a2cedab54c713948c6b6f4bd27bb45e2.tar.gz
Fixed another bug in git.strip_git() (bug 0cad).
Also added git mode to test_usage.sh. I'll go through and add modes for the other RCSs...
Diffstat (limited to 'libbe')
-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):