Use a full repo path so we can expand to include trunk/scripts later.
[invirt/scripts/git-migration.git] / git-migrate
index ccd9934..053c9a9 100755 (executable)
@@ -29,6 +29,9 @@ def tagBase(pkg):
                           cwd='%s.git' % pkg)
 
 def clonePackage(base, pkg):
                           cwd='%s.git' % pkg)
 
 def clonePackage(base, pkg):
+    path = '%s/%s' % (base, pkg)
+    pkg = os.path.basename(pkg)
+    
     if not os.path.isdir('%s.git' % pkg):
         if os.path.isdir(pkg):
             shutil.rmtree(pkg)
     if not os.path.isdir('%s.git' % pkg):
         if os.path.isdir(pkg):
             shutil.rmtree(pkg)
@@ -39,7 +42,7 @@ def clonePackage(base, pkg):
                                '-Aauthors',
                                '-q',
                                '--no-metadata',
                                '-Aauthors',
                                '-q',
                                '--no-metadata',
-                               '%s/packages/%s' % (base, pkg)],
+                               '%s' % path],
                               stdout=subprocess.PIPE)
         
         # Then make the repository bare, because git-svn can't do this
                               stdout=subprocess.PIPE)
         
         # Then make the repository bare, because git-svn can't do this