Ask the user for the name of the remotes during init
authorFrederic Massart <fred@moodle.com>
Fri, 7 Dec 2012 02:43:42 +0000 (10:43 +0800)
committerFrederic Massart <fred@moodle.com>
Fri, 7 Dec 2012 02:43:42 +0000 (10:43 +0800)
config-dist.json
moodle-init.py

index 1ed6956..698c197 100644 (file)
@@ -80,9 +80,9 @@
     // Moodle admin password
     "passwd": "test",
     // What to call your remote, the one pointing to remotes.mine
-    "myRemote": "origin",
+    "myRemote": "github",
     // What to call the upstream remote, the one pointing to the official repositoriy (stable or integration)
-    "upstreamRemote": "upstream",
+    "upstreamRemote": "origin",
 
     // The name of the data directory
     "dataDir": "moodledata",
index 38dd07a..e9d0668 100755 (executable)
@@ -150,6 +150,8 @@ if not os.path.isdir(mdkdir):
 
 # Git repository.
 C.set('remotes.mine', question('What is your remote?', C.get('remotes.mine')))
+C.set('myRemote', question('How to name your remote?', C.get('myRemote')))
+C.set('upstreamRemote', question('How to name the upsream remote (official Moodle remote)?', C.get('upstreamRemote')))
 
 # Database settings.
 C.set('db.mysqli.user', question('What is your MySQL user?', C.get('db.mysqli.user')))