Index: trac/scripts/admin.py
===================================================================
--- trac/scripts/admin.py	(revision 2165)
+++ trac/scripts/admin.py	(working copy)
@@ -480,7 +480,7 @@
     ## Initenv
     _help_initenv = [('initenv',
                       'Create and initialize a new environment interactively'),
-                     ('initenv <projectname> <db> <repospath> <templatepath>',
+                     ('initenv <projectname> <db> <repospath|--none> <templatepath>',
                       'Create and initialize a new environment from arguments')]
 
     def do_initdb(self, line):
@@ -512,6 +512,8 @@
         print ' Please specify the absolute path to the project Subversion repository.'
         print ' Repository must be local, and trac-admin requires read+write'
         print ' permission to initialize the Trac database.'
+        print ' Specify \'--none\' to skip initialization of the subversion'
+        print ' repository (use trac without source control).'
         print
         drp = '/var/svn/test'
         prompt = 'Path to repository [%s]> ' % drp
@@ -580,9 +582,10 @@
             self._do_wiki_load(default_dir('wiki'), cursor)
             cnx.commit()
 
-            print ' Indexing repository'
-            repos = self.__env.get_repository()
-            repos.sync()
+            if repository_dir != '--none':
+                print ' Indexing repository'
+                repos = self.__env.get_repository()
+                repos.sync()
 
         except Exception, e:
             print 'Failed to initialize environment.', e

