chiark / gitweb /
Import from gitorious projects
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 27 Feb 2012 09:08:25 +0000 (09:08 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 27 Feb 2012 09:08:25 +0000 (09:08 +0000)
import.py

index 0e7307c98f471a715583545bca939c6c919b8568..77c43db34a301c87ce8583afaba5069f52fa9311 100755 (executable)
--- a/import.py
+++ b/import.py
@@ -62,6 +62,11 @@ def main():
         repo = url + '.git'
         repotype = 'git'
         sourcecode = url
+    elif url.startswith('https://gitorious.org/'):
+        projecttype = 'gitorious'
+        repo = 'https://git.gitorious.org/' + url[22:] + '.git'
+        repotype = 'git'
+        sourcecode = url
     elif url.startswith('http://code.google.com/p/'):
         if not url.endswith('/'):
             print "Expected format for googlecode url is http://code.google.com/p/PROJECT/"