aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-06-07 17:50:35 +0200
committerGuido Günther <agx@sigxcpu.org>2010-06-07 17:50:35 +0200
commit7f0b81f1f8f132dbc6869613382a5455e8af3078 (patch)
tree91fdd194e7f16ca7f2a20ad534008fe5a504a589
parent488f16c19b9eb1a6d54595f6bcd1e3904655c045 (diff)
Strip traling slashes from repo path
Closes: #584775
-rwxr-xr-xgbp-clone6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp-clone b/gbp-clone
index 02f22b5e..ed835f9b 100755
--- a/gbp-clone
+++ b/gbp-clone
@@ -52,7 +52,7 @@ def main(argv):
parser.print_help()
return 1
else:
- repo = args[1]
+ source = args[1]
if options.verbose:
Command.verbose = True
@@ -65,9 +65,9 @@ def main(argv):
pass
try:
- GitClone()([repo])
+ GitClone()([source])
- (clone, dummy) = os.path.splitext(repo.rsplit('/',1)[1])
+ (clone, dummy) = os.path.splitext(source.rstrip('/').rsplit('/',1)[1])
os.chdir(clone)
repo = GitRepository(os.path.curdir)