Strip traling slashes from repo path
authorGuido Günther <agx@sigxcpu.org>
Mon, 7 Jun 2010 15:50:35 +0000 (17:50 +0200)
committerGuido Günther <agx@sigxcpu.org>
Mon, 7 Jun 2010 15:50:35 +0000 (17:50 +0200)
Closes: #584775

gbp-clone

index 02f22b5..ed835f9 100755 (executable)
--- 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)